summaryrefslogtreecommitdiff
path: root/test-beta/rename/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-06 17:47:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-06 17:47:10 +0800
commitc302f165c2713fa1d3258622fcf4e7eb7ec56aca (patch)
treea915135a2c09e88e62fb53be25d8da640cf66a7f /test-beta/rename/init.lua
parent8c4e91723d8a5efa4b75f6ea9307e54e9eecf667 (diff)
downloadlua-language-server-c302f165c2713fa1d3258622fcf4e7eb7ec56aca.zip
整理代码
Diffstat (limited to 'test-beta/rename/init.lua')
-rw-r--r--test-beta/rename/init.lua55
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" ])