From b198d914dba288c736973e38b6fde06b768b8587 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 29 Aug 2021 19:52:14 -0500 Subject: strengthen tests and implement table creation cleanup --- src/tests/hs_create_table_tests.c | 215 +++++++++++++++++++++++++++++++++++--- 1 file changed, 202 insertions(+), 13 deletions(-) (limited to 'src/tests') diff --git a/src/tests/hs_create_table_tests.c b/src/tests/hs_create_table_tests.c index 0d6465d..c33454a 100644 --- a/src/tests/hs_create_table_tests.c +++ b/src/tests/hs_create_table_tests.c @@ -3,6 +3,16 @@ static int testfunc1(lua_State *L) { return 0; } static int testfunc2(lua_State *L) { return 0; } +static void print_stack(lua_State *L) +{ + printf("stack: %d [", lua_gettop(L)); + for (int i=0; i