From bff77649543d2f43db4959b76f045a7a7f87c6a2 Mon Sep 17 00:00:00 2001 From: sanine Date: Sat, 4 Sep 2021 00:51:34 -0500 Subject: remove spurious debug messages from hs_create_table_tests --- src/tests/hs_create_table_tests.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src') 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; } -- cgit v1.2.1