Regularized unit testing framework.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user