diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-10-12 16:33:29 +0800 |
commit | ea2795520e68db8737bd6d0ab7a93d5e5a482346 (patch) | |
tree | 5f21f8392ad123497f52ab893e79cb3013879456 /test/completion | |
parent | 896a1affdeed8304688611674df88140a5cc180e (diff) | |
download | lua-language-server-ea2795520e68db8737bd6d0ab7a93d5e5a482346.zip |
cleanup
Diffstat (limited to 'test/completion')
-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 |