diff options
Diffstat (limited to 'server-beta/test/rename/init.lua')
-rw-r--r-- | server-beta/test/rename/init.lua | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/server-beta/test/rename/init.lua b/server-beta/test/rename/init.lua index acfc4ae1..48e82546 100644 --- a/server-beta/test/rename/init.lua +++ b/server-beta/test/rename/init.lua @@ -57,7 +57,7 @@ function TEST(oldName, newName) local pos = oldScript:find('[^%w_]'..oldName..'[^%w_]') assert(pos) - local positions = core('', pos+1, newName) + local positions = core.rename('', pos+1, newName) local script = oldScript if positions then script = replace(script, positions) @@ -129,6 +129,20 @@ t["!!!"] = 1 a = t["!!!"] ]] +TEST ('a', '!!!') [[ +t = { + ['a'] = 0 +} +t.a = 1 +a = t.a +]] [[ +t = { + ["!!!"] = 0 +} +t["!!!"] = 1 +a = t["!!!"] +]] + TEST ('a', '"') [[ print(t[ "a" ]) ]] [[ |