core/vm: add missing immediate operand tests

This commit is contained in:
jonny rhea 2025-11-03 20:31:25 -06:00
parent 342d3f415c
commit 598625c2aa

View file

@ -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 {