summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-09-04 00:51:34 -0500
committersanine <sanine.not@pm.me>2021-09-04 00:51:34 -0500
commitbff77649543d2f43db4959b76f045a7a7f87c6a2 (patch)
tree7e694d492b66991255253ac43df6832d496b1dcd
parent84a890dcc33b5c557fa570750960f20a6d239764 (diff)
remove spurious debug messages from hs_create_table_tests
-rw-r--r--src/tests/hs_create_table_tests.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/tests/hs_create_table_tests.c b/src/tests/hs_create_table_tests.c
index 3428f90..a54a424 100644
--- a/src/tests/hs_create_table_tests.c
+++ b/src/tests/hs_create_table_tests.c
@@ -156,24 +156,17 @@ TEST(create_table_bool_num)
TEST(create_table_bool_str)
{
- print_stack(L);
int oldtop = lua_gettop(L);
int index = hs_create_table
(L, hs_bool_str(true, "hello"), hs_bool_str(false, "world"));
- print_stack(L);
mu_assert_equal(oldtop + 1, lua_gettop(L));
mu_assert_equal(index, lua_gettop(L));
mu_assert_equal(lua_type(L, index), LUA_TTABLE);
loadkey_bool(index, true);
- print_stack(L);
- printf("value: '%s'", lua_tostring(L, -1));
checkval_str("hello");
- print_stack(L);
loadkey_bool(index, false);
- print_stack(L);
checkval_str("world");
- print_stack(L);
return 0;
}
@@ -217,12 +210,8 @@ TEST(create_table_bool_func)
mu_assert_equal(index, lua_gettop(L));
mu_assert_equal(lua_type(L, index), LUA_TTABLE);
- printf("index: %d, stack: %d\n", index, lua_gettop(L));
-
load(value1);
- printf("index: %d, stack: %d\n", index, lua_gettop(L));
load(value2);
- printf("index: %d, stack: %d\n", index, lua_gettop(L));
loadkey_bool(index, true);
checkval_func(value1);
@@ -361,7 +350,6 @@ TEST(create_table_int_str)
mu_assert_equal(lua_type(L, index), LUA_TTABLE);
loadkey_int(index, 15);
- printf("value: %s\n", lua_tostring(L, -1));
checkval_str("hello");
loadkey_int(index, 25);
checkval_str("world");
@@ -678,23 +666,17 @@ TEST(create_table_num_light)
TEST(create_table_str_bool)
{
- print_stack(L);
int oldtop = lua_gettop(L);
int index = hs_create_table
(L, hs_str_bool("c:", true), hs_str_bool(":)", true));
- print_stack(L);
mu_assert_equal(oldtop + 1, lua_gettop(L));
mu_assert_equal(index, lua_gettop(L));
mu_assert_equal(lua_type(L, index), LUA_TTABLE);
loadkey_str(index, "c:");
- print_stack(L);
checkval_bool(true);
- print_stack(L);
loadkey_str(index, ":)");
- print_stack(L);
checkval_bool(true);
- print_stack(L);
return 0;
}