Combining two repos
This commit is contained in:
14
luprex/core/lua/ut-globaldb.lua
Normal file
14
luprex/core/lua/ut-globaldb.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
makeclass("unittests")
|
||||
|
||||
function unittests.globaldb()
|
||||
globaldb.enable()
|
||||
local g1a = global("unittest-g1")
|
||||
local g2a = global("unittest-g2")
|
||||
local g1b = global("unittest-g1")
|
||||
local g2b = global("unittest-g2")
|
||||
assert(g1a == g1b)
|
||||
assert(g2a == g2b)
|
||||
assert(g1a.__global == "unittest-g1")
|
||||
assert(g2a.__global == "unittest-g2")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user