diff options
Diffstat (limited to 'tests/testmod.c')
-rw-r--r-- | tests/testmod.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testmod.c b/tests/testmod.c index c2dc715..2293064 100644 --- a/tests/testmod.c +++ b/tests/testmod.c | |||
@@ -205,7 +205,10 @@ static int test_udata (lua_State *L) { | |||
205 | (void)u2; | 205 | (void)u2; |
206 | lua_pushlightuserdata(L, luaL_testudata(L, u1pos, tname)); | 206 | lua_pushlightuserdata(L, luaL_testudata(L, u1pos, tname)); |
207 | lua_pushlightuserdata(L, luaL_testudata(L, u2pos, tname)); | 207 | lua_pushlightuserdata(L, luaL_testudata(L, u2pos, tname)); |
208 | return 2; | 208 | luaL_getmetatable(L, "utype1"); |
209 | lua_getfield(L, -1, "__name"); | ||
210 | lua_replace(L, -2); | ||
211 | return 3; | ||
209 | } | 212 | } |
210 | 213 | ||
211 | static int test_subtable (lua_State *L) { | 214 | static int test_subtable (lua_State *L) { |