summaryrefslogtreecommitdiff
path: root/test/highlight
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-12 16:33:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-12 16:33:29 +0800
commitea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch)
tree5f21f8392ad123497f52ab893e79cb3013879456 /test/highlight
parent896a1affdeed8304688611674df88140a5cc180e (diff)
downloadlua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip
cleanup
Diffstat (limited to 'test/highlight')
-rw-r--r--test/highlight/init.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/highlight/init.lua b/test/highlight/init.lua
index 0cca79f1..399012a8 100644
--- a/test/highlight/init.lua
+++ b/test/highlight/init.lua
@@ -21,18 +21,18 @@ end
function TEST(script)
local newScript, catched = catch(script, '!')
- files.setText('', newScript)
+ files.setText(TESTURI, newScript)
for _, enter in ipairs(catched['!']) do
local start, finish = enter[1], enter[2]
local pos = (start + finish) // 2
- local positions = core('', pos)
+ local positions = core(TESTURI, pos)
local results = {}
for _, position in ipairs(positions) do
results[#results+1] = { position.start, position.finish }
end
assert(founded(catched['!'], results))
end
- files.remove('')
+ files.remove(TESTURI)
end
TEST [[