summaryrefslogtreecommitdiff
path: root/test/definition
diff options
context:
space:
mode:
Diffstat (limited to 'test/definition')
-rw-r--r--test/definition/init.lua8
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'