Stub out the new global.set and global.get operators
This commit is contained in:
@@ -51,11 +51,6 @@ function unittests.diffcompare()
|
||||
-- Try a table containing a pointer to the global environment.
|
||||
assert(tdc({}, {a=_G}, {}, {}) == "a=globals;")
|
||||
|
||||
-- GlobalDB tables should be forced to NIL.
|
||||
assert(tdc({}, {a=global.table("foo")}, {}, {a=global.table("foo")}) == "a=nil;");
|
||||
assert(tdc({}, {}, {}, {a=global.table("foo")}) == "a=nil;");
|
||||
assert(tdc({}, {a=global.table("foo")}, {}, {}) == "");
|
||||
|
||||
-- Set up some numbered tables for tests involving such.
|
||||
local mtab10 = {}
|
||||
local stab10 = {}
|
||||
@@ -116,11 +111,6 @@ function unittests.diffapply()
|
||||
-- verify a table containing the global environment.
|
||||
assert(tda(tnmap, {a=_G}, {}))
|
||||
|
||||
-- GlobalDB tables should be forced to NIL.
|
||||
rtab={a=3}
|
||||
assert(not tda({}, {a=global.table("foo")}, rtab))
|
||||
assert(rtab.a == nil)
|
||||
|
||||
-- Unnumbered tables should be forced to NIL.
|
||||
rtab={a=3}
|
||||
assert(not tda({}, {a={}}, rtab))
|
||||
|
||||
Reference in New Issue
Block a user