mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
test VM REF
This commit is contained in:
parent
71bb89eb0c
commit
c6dec36080
@ -82,14 +82,14 @@ TEST(VM, str_xy_space) {
|
||||
}
|
||||
|
||||
TEST(VM, ref_a_b) {
|
||||
Args* buffs = New_strBuff();
|
||||
PikaObj* self = newRootObj((char*)"root", New_PikaStdLib_SysObj);
|
||||
Args* buffs = New_strBuff();
|
||||
|
||||
pikaVM_runAsm(self, pikaParseToAsm(buffs, (char*)"a = 'xy '"));
|
||||
pikaVM_runAsm(self, pikaParseToAsm(buffs, (char*)"b = a"));
|
||||
|
||||
args_deinit(buffs);
|
||||
ASSERT_STREQ(obj_getStr(self, (char*)"b"), (char*)"xy ");
|
||||
obj_deinit(self);
|
||||
args_deinit(buffs);
|
||||
EXPECT_EQ(pikaMemNow(), 0);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user