diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-06 17:47:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-06 17:47:10 +0800 |
commit | c302f165c2713fa1d3258622fcf4e7eb7ec56aca (patch) | |
tree | a915135a2c09e88e62fb53be25d8da640cf66a7f /test-beta/rename/init.lua | |
parent | 8c4e91723d8a5efa4b75f6ea9307e54e9eecf667 (diff) | |
download | lua-language-server-c302f165c2713fa1d3258622fcf4e7eb7ec56aca.zip |
整理代码
Diffstat (limited to 'test-beta/rename/init.lua')
-rw-r--r-- | test-beta/rename/init.lua | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/test-beta/rename/init.lua b/test-beta/rename/init.lua index f19af4cf..5ca0ca15 100644 --- a/test-beta/rename/init.lua +++ b/test-beta/rename/init.lua @@ -82,34 +82,33 @@ local function f(b) end ]] --- TODO ---TEST ('a', '!!!') [[ ---t = { --- a = 0 ---} ---t.a = 1 ---a = t.a ---]] [[ ---t = { --- ["!!!"] = 0 ---} ---t["!!!"] = 1 ---a = t["!!!"] ---]] - ---TEST ('a', '!!!') [[ ---t = { --- ['a'] = 0 ---} ---t.a = 1 ---a = t.a ---]] [[ ---t = { --- ['!!!'] = 0 ---} ---t["!!!"] = 1 ---a = t["!!!"] ---]] +TEST ('a', '!!!') [[ +t = { + a = 0 +} +t.a = 1 +a = t.a +]] [[ +t = { + ["!!!"] = 0 +} +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" ]) |