Browse Source

test for lua_pushbool

Roberto Ierusalimschy 23 years ago
parent
commit
c6a108e012
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ltests.c

+ 3 - 0
ltests.c

@@ -561,6 +561,9 @@ static int testC (lua_State *L) {
     else if EQ("pushnum") {
       lua_pushnumber(L, getnum);
     }
+    else if EQ("pushbool") {
+      lua_pushboolean(L, getnum);
+    }
     else if EQ("pushvalue") {
       lua_pushvalue(L, getnum);
     }