Fix SMOD_2 unit test
This commit is contained in:
parent
248aabefc3
commit
300687f960
|
@ -3166,7 +3166,7 @@ public class VMTest {
|
|||
Program program = new Program(Hex.decode("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE2" + // -30
|
||||
"7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF56" + // -170
|
||||
"07"), new ProgramInvokeMockImpl());
|
||||
String s_expected_1 = "0000000000000000000000000000000000000000000000000000000000000000";
|
||||
String s_expected_1 = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEC";
|
||||
|
||||
vm.step(program);
|
||||
vm.step(program);
|
||||
|
@ -3193,12 +3193,6 @@ public class VMTest {
|
|||
program.getResult().getRepository().close();
|
||||
assertEquals(s_expected_1, Hex.toHexString(item1.getData()).toUpperCase());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSMOD_x() {
|
||||
int x = -170 % 30;
|
||||
System.out.println(x);
|
||||
}
|
||||
|
||||
@Test(expected=StackTooSmallException.class) // SMOD OP mal
|
||||
public void testSMOD_4() {
|
||||
|
|
Loading…
Reference in New Issue