summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-26 16:03:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-26 16:03:57 +0800
commit4c5b524bfef2591a0293960c26ff18c603243965 (patch)
tree2389e5a0c74242f51ea563bd3838e1d0297d2e8f /test
parent3d21c63ec3e330dc717008b37f8fb1fa38d41862 (diff)
downloadlua-language-server-4c5b524bfef2591a0293960c26ff18c603243965.zip
#1385 normalize uri
Diffstat (limited to 'test')
-rw-r--r--test/tclient/tests/single-mode.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/tclient/tests/single-mode.lua b/test/tclient/tests/single-mode.lua
index 25463f55..b26c50c3 100644
--- a/test/tclient/tests/single-mode.lua
+++ b/test/tclient/tests/single-mode.lua
@@ -9,7 +9,7 @@ lclient():start(function (client)
client:notify('textDocument/didOpen', {
textDocument = {
- uri = 'file://single-file.lua',
+ uri = 'file:///single-file.lua',
languageId = 'lua',
version = 0,
text = [[
@@ -25,13 +25,13 @@ print(TEST)
ws.awaitReady()
local locations = client:awaitRequest('textDocument/definition', {
- textDocument = { uri = 'file://single-file.lua' },
+ textDocument = { uri = 'file:///single-file.lua' },
position = { line = 1, character = 7 },
})
assert(util.equal(locations, {
{
- uri = 'file://single-file.lua',
+ uri = 'file:///single-file.lua',
range = {
start = { line = 0, character = 6 },
['end'] = { line = 0, character = 7 },
@@ -40,20 +40,20 @@ print(TEST)
}))
local locations = client:awaitRequest('textDocument/definition', {
- textDocument = { uri = 'file://single-file.lua' },
+ textDocument = { uri = 'file:///single-file.lua' },
position = { line = 1, character = 0 },
})
assert(#locations > 0)
local locations = client:awaitRequest('textDocument/definition', {
- textDocument = { uri = 'file://single-file.lua' },
+ textDocument = { uri = 'file:///single-file.lua' },
position = { line = 3, character = 0 },
})
assert(util.equal(locations, {
{
- uri = 'file://single-file.lua',
+ uri = 'file:///single-file.lua',
range = {
start = { line = 3, character = 0 },
['end'] = { line = 3, character = 4 },