Skip to content

Commit

Permalink
restore sysobj test
Browse files Browse the repository at this point in the history
  • Loading branch information
lyon committed Aug 22, 2021
1 parent 2d1a3b5 commit bce1ab5
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/test/object-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,25 +161,25 @@ TEST(object_test, test6)
EXPECT_EQ(pikaMemNow(), 0);
}

// TEST(object_test, test7)
// {
// PikaObj *sys = newRootObj((char *)"sys", New_SysObj);
// int32_t a = 0;
// obj_bind(sys, (char *)"int", (char *)"a", &a);
// obj_run(sys, (char *)"set('a', 1)");
// obj_deinit(sys);
// EXPECT_EQ(1, a);
// EXPECT_EQ(pikaMemNow(), 0);
// }

// TEST(object_test, test8)
// {
// PikaObj *sys = newRootObj((char *)"sys", New_SysObj);
// obj_run(sys, (char *)"set('a', 1)");
// obj_run(sys, (char *)"del('a')");
// obj_deinit(sys);
// EXPECT_EQ(pikaMemNow(), 0);
// }
TEST(object_test, test7)
{
PikaObj *sys = newRootObj((char *)"sys", New_SysObj);
int32_t a = 0;
obj_bind(sys, (char *)"int", (char *)"a", &a);
obj_run(sys, (char *)"set('a', 1)");
obj_deinit(sys);
EXPECT_EQ(1, a);
EXPECT_EQ(pikaMemNow(), 0);
}

TEST(object_test, test8)
{
PikaObj *sys = newRootObj((char *)"sys", New_SysObj);
obj_run(sys, (char *)"set('a', 1)");
obj_run(sys, (char *)"del('a')");
obj_deinit(sys);
EXPECT_EQ(pikaMemNow(), 0);
}

TEST(object_test, test9)
{
Expand Down

0 comments on commit bce1ab5

Please sign in to comment.