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