From 1045d7dd44c3876d73c12fb5780edca50ae39a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=B3=BD=E8=BD=A9?= Date: Tue, 20 Apr 2021 05:30:20 +0800 Subject: [Lua] Fix EnforceNumberAndPack for bool type (#6576) --- tests/luatest.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/luatest.lua') diff --git a/tests/luatest.lua b/tests/luatest.lua index e60f837d..a2a9d639 100644 --- a/tests/luatest.lua +++ b/tests/luatest.lua @@ -17,6 +17,7 @@ local function checkReadBuffer(buf, offset, sizePrefix) assert(mon:Hp() == 80, "Monster Hp is not 80") assert(mon:Mana() == 150, "Monster Mana is not 150") assert(mon:Name() == "MyMonster", "Monster Name is not MyMonster") + assert(mon:Testbool() == true) local vec = assert(mon:Pos(), "Monster Position is nil") assert(vec:X() == 1.0) -- cgit v1.2.3