Home | History | Annotate | Download | only in dist

Lines Matching refs:state

37     lutok::state state;
39 lutok::stack_cleaner cleaner(state);
40 ATF_REQUIRE_EQ(0, state.get_top());
42 ATF_REQUIRE_EQ(0, state.get_top());
49 lutok::state state;
51 lutok::stack_cleaner cleaner(state);
52 state.push_integer(15);
53 ATF_REQUIRE_EQ(1, state.get_top());
54 state.push_integer(30);
55 ATF_REQUIRE_EQ(2, state.get_top());
57 ATF_REQUIRE_EQ(0, state.get_top());
64 lutok::state state;
66 lutok::stack_cleaner cleaner1(state);
67 state.push_integer(10);
68 ATF_REQUIRE_EQ(1, state.get_top());
69 ATF_REQUIRE_EQ(10, state.to_integer());
71 lutok::stack_cleaner cleaner2(state);
72 state.push_integer(20);
73 ATF_REQUIRE_EQ(2, state.get_top());
74 ATF_REQUIRE_EQ(20, state.to_integer(-1));
75 ATF_REQUIRE_EQ(10, state.to_integer(-2));
77 ATF_REQUIRE_EQ(1, state.get_top());
78 ATF_REQUIRE_EQ(10, state.to_integer());
80 ATF_REQUIRE_EQ(0, state.get_top());
87 lutok::state state;
89 lutok::stack_cleaner cleaner(state);
90 state.push_integer(15);
91 state.push_integer(30);
93 state.push_integer(60);
94 ATF_REQUIRE_EQ(3, state.get_top());
96 ATF_REQUIRE_EQ(2, state.get_top());
97 ATF_REQUIRE_EQ(30, state.to_integer());
98 state.pop(2);