More opcode tests
This commit is contained in:
@@ -30,3 +30,10 @@ func expectGlobalMemory(t *testing.T, state *vm.State, i uint64, expected uint64
|
||||
t.Fatalf("Global memory index %d: expected=%d actual=%d\n", i, expected, actual)
|
||||
}
|
||||
}
|
||||
|
||||
func expectGlobalMemorySigned(t *testing.T, state *vm.State, i uint64, expected int64) {
|
||||
actual := int64(state.GlobalMemory().MustReadUnsigned(i))
|
||||
if actual != expected {
|
||||
t.Fatalf("Global memory index %d: expected=%d actual=%d\n", i, expected, actual)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user