From ea2795520e68db8737bd6d0ab7a93d5e5a482346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 12 Oct 2022 16:33:29 +0800 Subject: cleanup --- test/definition/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/definition') 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' -- cgit v1.2.3