mirror of
https://github.com/status-im/ethereumj-personal.git
synced 2025-02-21 07:58:06 +00:00
Add INVALID op test
This commit is contained in:
parent
c99c7b818c
commit
1b521a9894
@ -3339,6 +3339,24 @@ public class VMTest {
|
|||||||
assertEquals(s_expected_1, Hex.toHexString(item1.getData()).toUpperCase());
|
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 */
|
/* TEST CASE LIST END */
|
||||||
|
|
||||||
public ProgramInvoke createProgramInvoke_1() {
|
public ProgramInvoke createProgramInvoke_1() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user