| 26 | }; |
| 27 | |
| 28 | TEST_F(ScriptBitopTest, TestBitop) |
| 29 | { |
| 30 | int top = lua_gettop(L); |
| 31 | |
| 32 | ASSERT_TRUE(RunFile(L, "test_bitop.luac")); |
| 33 | |
| 34 | lua_getglobal(L, "functions"); |
| 35 | ASSERT_EQ(LUA_TTABLE, lua_type(L, -1)); |
| 36 | lua_getfield(L, -1, "test_bitop_md5"); |
| 37 | ASSERT_EQ(LUA_TFUNCTION, lua_type(L, -1)); |
| 38 | int result = dmScript::PCall(L, 0, LUA_MULTRET); |
| 39 | if (result == LUA_ERRRUN) |
| 40 | { |
| 41 | ASSERT_TRUE(false); |
| 42 | } |
| 43 | else |
| 44 | { |
| 45 | ASSERT_EQ(0, result); |
| 46 | } |
| 47 | lua_pop(L, 1); |
| 48 | |
| 49 | |
| 50 | ASSERT_EQ(top, lua_gettop(L)); |
| 51 | } |
| 52 | |
| 53 | extern "C" void dmExportedSymbols(); |
| 54 |
nothing calls this directly
no test coverage detected