Regularized unit testing framework.

This commit is contained in:
2021-01-12 15:49:05 -05:00
parent 25b9b4cb5d
commit 6bf1476e5e
14 changed files with 174 additions and 167 deletions

View File

@@ -1,7 +1,6 @@
makeclass("unittests")
local ut = {}
function ut.globaldb()
function unittests.globaldb()
globaldb.enable()
local g1a = global("unittest-g1")
local g2a = global("unittest-g2")
@@ -13,4 +12,3 @@ function ut.globaldb()
assert(g2a.__global == "unittest-g2")
end
rununittests(ut)