diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
commit | ea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch) | |
tree | 5f21f8392ad123497f52ab893e79cb3013879456 /test/definition | |
parent | 896a1affdeed8304688611674df88140a5cc180e (diff) | |
download | lua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip |
cleanup
Diffstat (limited to 'test/definition')
-rw-r--r-- | test/definition/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/definition/init.lua b/test/definition/init.lua index 3badaadf..7e0a7989 100644 --- a/test/definition/init.lua +++ b/test/definition/init.lua @@ -24,14 +24,14 @@ end function TEST(script) local newScript, catched = catch(script, '!?') - files.setText('', newScript) + files.setText(TESTURI, newScript) - local results = core('', catched['?'][1][1]) + local results = core(TESTURI, catched['?'][1][1]) if results then local positions = {} for i, result in ipairs(results) do if not vm.isMetaFile(result.uri) then - positions[i] = { result.target.start, result.target.finish } + positions[#positions+1] = { result.target.start, result.target.finish } end end assert(founded(catched['!'], positions)) @@ -39,7 +39,7 @@ function TEST(script) assert(#catched['!'] == 0) end - files.remove('') + files.remove(TESTURI) end require 'definition.local' |