【优化】测试代码

This commit is contained in:
wxd-gaming
2024-10-10 19:21:07 +08:00
parent 5eea049e14
commit be3c76545f

View File

@@ -11,12 +11,17 @@ function t3(str)
end
function testNow(map)
argsTest(1, "3")
print(" lua now - " .. ret(map))
print(" lua now - " .. ret(map["now"]))
print(" lua nowsec - " .. ret(map["nowsec"]))
print("lua math.ceil - " .. ret(math.ceil(map["now"] / 1000)))
end
function argsTest(...)
gameDebug.assertTrue(1 == 2, "参数异常", ...)
end
function ret(obj)
local success, ret = pcall(function()
return "dd - " .. obj