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/highlight/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/highlight') 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 [[ -- cgit v1.2.3