.
This commit is contained in:
@@ -84,9 +84,7 @@ TEST(VM, BasicCode)
|
|||||||
|
|
||||||
VM vm;
|
VM vm;
|
||||||
vm.load_bytecode(std::move(ba));
|
vm.load_bytecode(std::move(ba));
|
||||||
printf("%s\n", vm.debug_stack().c_str());
|
|
||||||
vm.call(0);
|
vm.call(0);
|
||||||
printf("%s\n", vm.debug_stack().c_str());
|
|
||||||
|
|
||||||
int32_t result = vm.to_integer(-1);
|
int32_t result = vm.to_integer(-1);
|
||||||
ASSERT_EQ(result, 5);
|
ASSERT_EQ(result, 5);
|
||||||
|
|||||||
Reference in New Issue
Block a user