summaryrefslogtreecommitdiff
path: root/honey/ecs.test.lua
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-03-28 13:55:59 -0500
committersanine-a <sanine.not@pm.me>2023-03-28 13:55:59 -0500
commitd1c2a881f55b80603f6a7772a2c32394d23e795a (patch)
tree945def73f0ef2a1f31fbb9f6756515a9e8a73445 /honey/ecs.test.lua
parent4f450ca94522f5c26a631fc4d19bd6eec420cbec (diff)
switch to uids
Diffstat (limited to 'honey/ecs.test.lua')
-rw-r--r--honey/ecs.test.lua8
1 files changed, 8 insertions, 0 deletions
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))