diff options
Diffstat (limited to 'test/crossfile/definition.lua')
-rw-r--r-- | test/crossfile/definition.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index c9a95658..8cf6234f 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -27,8 +27,6 @@ local function founded(targets, results) end function TEST(datas) - files.removeAll() - local targetList = {} local sourceList local sourceUri @@ -56,6 +54,12 @@ function TEST(datas) files.setText(uri, newScript) end + local _ <close> = function () + for _, info in ipairs(datas) do + files.remove(furi.encode(info.path)) + end + end + local sourcePos = (sourceList[1][1] + sourceList[1][2]) // 2 local positions = core(sourceUri, sourcePos) if positions then |