diff options
Diffstat (limited to 'test/crossfile/references.lua')
-rw-r--r-- | test/crossfile/references.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua index 145792b5..ec02eef7 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -53,8 +53,6 @@ local function founded(targets, results) end function TEST(datas) - files.removeAll() - local targetList = {} local sourceList local sourceUri @@ -77,6 +75,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 |