From d1c2a881f55b80603f6a7772a2c32394d23e795a Mon Sep 17 00:00:00 2001 From: sanine-a Date: Tue, 28 Mar 2023 13:55:59 -0500 Subject: switch to uids --- honey/ecs.test.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'honey/ecs.test.lua') diff --git a/honey/ecs.test.lua b/honey/ecs.test.lua index fbdba30..0577dcd 100644 --- a/honey/ecs.test.lua +++ b/honey/ecs.test.lua @@ -1,8 +1,13 @@ +local testCount = 0 +local failCount = 0 + local function test(msg, f) + testCount = testCount + 1 local success, error = xpcall(f, debug.traceback) if success then print(msg .. "\t\t[OK]") else + failCount = failCount + 1 print(msg .. "\t\t[FAIL]") print(error) end @@ -222,3 +227,6 @@ test("EntityDb.deleteEntity() correctly removes an entity", function() local query = db:queryEntity(id1) end)) end) + + +print(string.format("ran %d tests, %d failed", testCount, failCount)) -- cgit v1.2.1