summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-15 21:40:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-15 21:40:16 +0800
commit03444fe030383163b35fcd8c557bccd31aeebe5a (patch)
tree95caf81eb51f098ca6388e15bde5920cd2c6ce1f /test
parentc3fc3c4631c8f69cb7250d8e2accd9ac0d8a0fb4 (diff)
downloadlua-language-server-03444fe030383163b35fcd8c557bccd31aeebe5a.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/definition/init.lua4
-rw-r--r--test/definition/table.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua
index 992744d5..2e87b0c2 100644
--- a/test/definition/init.lua
+++ b/test/definition/init.lua
@@ -35,9 +35,9 @@ function TEST(script)
positions[i] = { result.target.start, result.target.finish }
end
end
- assert(founded(catched['!'], positions))
+ assert(founded(catched['!'] or {}, positions))
else
- assert(#catched['!'] == 0)
+ assert(catched['!'] == nil)
end
end
diff --git a/test/definition/table.lua b/test/definition/table.lua
index d63cc655..61e8746d 100644
--- a/test/definition/table.lua
+++ b/test/definition/table.lua
@@ -54,7 +54,7 @@ t[<?"method"?>]()
TEST [[
local t
t[<!"longString"!>] = 1
-t[<?[==[longString]==]?>]()
+t[ <?[==[longString]==]?> ]()
]]
TEST [[