Skip to content

Commit b2e1614

Browse files
committed
chore: fix tests for 1.11
1 parent 1cc14a9 commit b2e1614

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/requests/test_completions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,17 @@ end
128128
# String macros
129129
settestdoc("uint12")
130130
@test any(item.label == "uint128\"" for item in completion_test(0, 6).items)
131-
@test any(item.label == "@uint128_str" for item in completion_test(0, 6).items)
132131

133132
settestdoc("@uint12")
134133
@test any(item.label == "@uint128_str" for item in completion_test(0, 7).items)
135134

136135
settestdoc("""
137136
macro foobar_str(ex) ex end
138137
fooba
138+
@fooba
139139
""")
140140
@test any(item.label == "foobar\"" for item in completion_test(1, 5).items)
141-
@test any(item.label == "@foobar_str" for item in completion_test(1, 5).items)
141+
@test any(item.label == "@foobar_str" for item in completion_test(2, 5).items)
142142
end
143143

144144
@testitem "scope var completions" begin

test/test_intellisense.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using LanguageServer.URIs2
44

55
include("test_shared_server.jl")
6-
6+
77
testtext = """
88
module testmodule
99
struct testtype
@@ -28,7 +28,10 @@
2828

2929

3030
res = LanguageServer.textDocument_hover_request(LanguageServer.TextDocumentPositionParams(LanguageServer.TextDocumentIdentifier(uri"untitled:testdoc"), LanguageServer.Position(3, 11)), server, nothing)
31-
@test res.contents.value == string(LanguageServer.sanitize_docstring(StaticLint.CoreTypes.Float64.doc), "\n```julia\nCore.Float64 <: Core.AbstractFloat\n```")
31+
@test occursin(
32+
"```julia\nCore.Float64 <: Core.AbstractFloat\n```",
33+
res.contents.value
34+
)
3235

3336
res = LanguageServer.textDocument_hover_request(LanguageServer.TextDocumentPositionParams(LanguageServer.TextDocumentIdentifier(uri"untitled:testdoc"), LanguageServer.Position(7, 12)), server, nothing)
3437
@test occursin(r"c::testtype", res.contents.value)

0 commit comments

Comments
 (0)