diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 13:59:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-07 13:59:32 +0800 |
commit | 4e4bc7c8908afb100233045a1b15368ba8764c59 (patch) | |
tree | f74a37d86179afb19101d4868782a4a803693eb2 /server/test | |
parent | 2ece834c7f6923742a5a76108d1a8aad1fc1a611 (diff) | |
download | lua-language-server-4e4bc7c8908afb100233045a1b15368ba8764c59.zip |
支持库的子lib
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/find_lib/init.lua | 23 |
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?>() +]] |