diff options
Diffstat (limited to 'test/completion/init.lua')
-rw-r--r-- | test/completion/init.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua index 4ae185ca..1ac7fd4b 100644 --- a/test/completion/init.lua +++ b/test/completion/init.lua @@ -68,8 +68,8 @@ function TEST(script) ---@diagnostic disable: await-in-sync local newScript, catched = catch(script, '?') - files.setText('', newScript) - local state = files.getState('') + files.setText(TESTURI, newScript) + local state = files.getState(TESTURI) local inputPos = catched['?'][1][2] if ContinueTyping then local triggerCharacter = script:sub(inputPos - 1, inputPos - 1) @@ -77,7 +77,7 @@ function TEST(script) or triggerCharacter:find '%w_' then triggerCharacter = nil end - core.completion('', inputPos, triggerCharacter) + core.completion(TESTURI, inputPos, triggerCharacter) end local offset = guide.positionToOffset(state, inputPos) local triggerCharacter = script:sub(offset, offset) @@ -85,7 +85,7 @@ function TEST(script) or triggerCharacter:find '%w_' then triggerCharacter = nil end - local result = core.completion('', inputPos, triggerCharacter) + local result = core.completion(TESTURI, inputPos, triggerCharacter) if not expect then assert(result == nil) @@ -131,7 +131,7 @@ function TEST(script) assert(eq(expect, result)) end end - files.remove('') + files.remove(TESTURI) end end |