summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-07 17:26:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-07 17:26:50 +0800
commit8bca250c629afe7cf99ade2042288b9f2cdde722 (patch)
tree9bf9b2db9927b950de66f51c3361bf7f34495010 /server/test
parentf3260ceb043848c26dd7ef45d0a5210ea6d4a5ba (diff)
downloadlua-language-server-8bca250c629afe7cf99ade2042288b9f2cdde722.zip
支持常亮oo
Diffstat (limited to 'server/test')
-rw-r--r--server/test/find_lib/init.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua
index 910167c8..06e04912 100644
--- a/server/test/find_lib/init.lua
+++ b/server/test/find_lib/init.lua
@@ -81,5 +81,18 @@ require 'table'.<?insert?>()
TEST '*string:sub' [[
local str = 'xxx'
+str.<?sub?> = 1
+]]
+
+TEST '*string:sub' [[
+local str = 'xxx'
str:<?sub?>(1, 1)
]]
+
+TEST '*string:sub' [[
+('xxx').<?sub?> = 1
+]]
+
+TEST '*string:sub' [[
+('xxx'):<?sub?>()
+]]