aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2018-01-13 18:47:14 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2018-01-13 18:47:14 +0100
commit30077d241b788b644fb923b4c2da628cdd2c3423 (patch)
tree7beadd04bb6d2f2eed2dd8a14ffa17a6a6bd4e72
parentbc91f40919196e6af6371c26f851f8f94da0b15c (diff)
downloadlua-compat-5.3-30077d241b788b644fb923b4c2da628cdd2c3423.tar.gz
lua-compat-5.3-30077d241b788b644fb923b4c2da628cdd2c3423.tar.bz2
lua-compat-5.3-30077d241b788b644fb923b4c2da628cdd2c3423.zip
Verify that lua_getuservalue returns type.
Closes #39.
-rw-r--r--tests/testmod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testmod.c b/tests/testmod.c
index a0d2e2a..9232682 100644
--- a/tests/testmod.c
+++ b/tests/testmod.c
@@ -225,9 +225,9 @@ static int test_uservalue (lua_State *L) {
225 int ui = lua_gettop(L); 225 int ui = lua_gettop(L);
226 lua_newtable(L); 226 lua_newtable(L);
227 lua_setuservalue(L, ui); 227 lua_setuservalue(L, ui);
228 lua_getuservalue(L, ui); 228 lua_pushinteger(L, lua_getuservalue(L, ui));
229 (void)udata; 229 (void)udata;
230 return 1; 230 return 2;
231} 231}
232 232
233static int test_upvalues (lua_State *L) { 233static int test_upvalues (lua_State *L) {