mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
core/vm: add missing immediate operand tests
This commit is contained in:
parent
342d3f415c
commit
598625c2aa
1 changed files with 15 additions and 0 deletions
|
|
@ -1094,6 +1094,21 @@ func TestEIP8024_Execution(t *testing.T) {
|
||||||
codeHex: "600060016002e801", // (n,m=2,3 need at least 4 items have 3)
|
codeHex: "600060016002e801", // (n,m=2,3 need at least 4 items have 3)
|
||||||
wantErr: true,
|
wantErr: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "MISSING_IMMEDIATE_DUPN",
|
||||||
|
codeHex: "e6", // no operand
|
||||||
|
wantErr: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "MISSING_IMMEDIATE_SWAPN",
|
||||||
|
codeHex: "e7", // no operand
|
||||||
|
wantErr: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "MISSING_IMMEDIATE_EXCHANGE",
|
||||||
|
codeHex: "e8", // no operand
|
||||||
|
wantErr: true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, tc := range tests {
|
for _, tc := range tests {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue