summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-07 13:59:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-07 13:59:32 +0800
commit4e4bc7c8908afb100233045a1b15368ba8764c59 (patch)
treef74a37d86179afb19101d4868782a4a803693eb2 /server/test
parent2ece834c7f6923742a5a76108d1a8aad1fc1a611 (diff)
downloadlua-language-server-4e4bc7c8908afb100233045a1b15368ba8764c59.zip
支持库的子lib
Diffstat (limited to 'server/test')
-rw-r--r--server/test/find_lib/init.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/server/test/find_lib/init.lua b/server/test/find_lib/init.lua
index afa9ec2a..1efb2423 100644
--- a/server/test/find_lib/init.lua
+++ b/server/test/find_lib/init.lua
@@ -55,3 +55,26 @@ local rq = require
local lib = 'table'
local <?xx?> = rq(lib)
]]
+
+TEST 'table.insert' [[
+table.<?insert?>()
+]]
+
+TEST 'table.insert' [[
+local t = table
+t.<?insert?>()
+]]
+
+TEST 'table.insert' [[
+local insert = table.insert
+<?insert?>()
+]]
+
+TEST 'table.insert' [[
+local t = require 'table'
+t.<?insert?>()
+]]
+
+TEST 'table.insert' [[
+require 'table'.<?insert?>()
+]]