mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-16 13:46:46 +00:00
Add INVALID op test
This commit is contained in:
parent
c99c7b818c
commit
1b521a9894
@ -3338,6 +3338,24 @@ public class VMTest {
|
||||
program.getResult().getRepository().close();
|
||||
assertEquals(s_expected_1, Hex.toHexString(item1.getData()).toUpperCase());
|
||||
}
|
||||
|
||||
@Test // INVALID OP
|
||||
public void testINVALID_1() {
|
||||
|
||||
VM vm = new VM();
|
||||
Program program =
|
||||
new Program(Hex.decode("6001516002"),
|
||||
createProgramInvoke_1());
|
||||
String s_expected_1 = "0000000000000000000000000000000000000000000000000000000000000001";
|
||||
|
||||
vm.step(program);
|
||||
vm.step(program);
|
||||
|
||||
DataWord item1 = program.stack.pop();
|
||||
program.getResult().getRepository().close();
|
||||
assertTrue(program.isStopped());
|
||||
assertEquals(s_expected_1, Hex.toHexString(item1.getData()).toUpperCase());
|
||||
}
|
||||
|
||||
/* TEST CASE LIST END */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user