From 259f9067c2fa562e6f7d92f5bbb4018a769c0a07 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Thu, 16 Apr 2015 15:16:15 +0100 Subject: [PATCH] elua lib: tests for require/appload refs --- src/tests/elua/elua_lib.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/elua/elua_lib.c b/src/tests/elua/elua_lib.c index e93707322c..98fca1a321 100644 --- a/src/tests/elua/elua_lib.c +++ b/src/tests/elua/elua_lib.c @@ -50,6 +50,14 @@ START_TEST(elua_api) fail_if(!elua_state_i18n_setup(st)); fail_if(!elua_state_io_setup(st)); + fail_if(!elua_state_require_ref_push(st)); + fail_if(lua_type(lst, -1) != LUA_TFUNCTION); + lua_pop(lst, 1); + + fail_if(!elua_state_appload_ref_push(st)); + fail_if(lua_type(lst, -1) != LUA_TFUNCTION); + lua_pop(lst, 1); + elua_state_free(st); elua_shutdown(); -- 2.34.1