mirror of
https://github.com/wxd-gaming/test-all.git
synced 2026-05-18 22:26:14 +08:00
【新增】jpa测试
This commit is contained in:
@@ -50,28 +50,8 @@ function testActor(actor)
|
||||
gameDebug.print(actor, actor:getUid(), actor:getName(), actor["lv"])
|
||||
end
|
||||
|
||||
local t1 = math.floor(1733760001082 / 1000)
|
||||
local t2 = math.floor(1733760000002 / 1000)
|
||||
local t3 = math.floor(1733759999999 / 1000)
|
||||
print(t1)
|
||||
print(t2)
|
||||
print(t3)
|
||||
print(TimeUtil.isSameDay4Millis(1733760000002, 1733760001082))
|
||||
|
||||
print(TimeUtil.timeFormat(t1))
|
||||
print(TimeUtil.timeFormat(t2))
|
||||
print(TimeUtil.timeFormat(t3))
|
||||
local tmp = "4" * 5
|
||||
print(type(tmp), tmp)
|
||||
|
||||
--test33(1, nil, 3)
|
||||
|
||||
--local var = TestData.new()
|
||||
--print(TestData.Lv(var, 33))
|
||||
--TestData.print(var)
|
||||
--TestData.print2(var)
|
||||
--gameDebug.assertPrintTrace(var.level == 33, "TestData.Lv(data, change) 测试失败")
|
||||
--gameDebug.assertTrue(var.level == 33, "TestData.Lv(data, change) 测试失败")
|
||||
|
||||
local k1 = "dddd"
|
||||
gameDebug.print({ k1 = "1" })
|
||||
gameDebug.print({ [k1] = "1" })
|
||||
|
||||
return TestData
|
||||
Reference in New Issue
Block a user