Skip to content

Commit d327f5a

Browse files
authored
Merge pull request julia-vscode#1263 from julia-vscode/sp/more-robust-compl-test
chore: make completion test more robust
2 parents 199a176 + a1a72d5 commit d327f5a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

test/requests/test_completions.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@testitem "latex completions" begin
2-
include("../test_shared_server.jl")
2+
include("../test_shared_server.jl")
33

44
settestdoc("""
55
\\therefor
@@ -48,9 +48,6 @@ end
4848
import .""")
4949
@test_broken completion_test(1, 8).items[1].label == "M"
5050

51-
settestdoc("import Base.")
52-
@test any(item.label == "Meta" for item in completion_test(0, 12).items)
53-
5451
settestdoc("import Base.M")
5552
@test any(item.label == "Meta" for item in completion_test(0, 13).items)
5653

@@ -62,7 +59,10 @@ end
6259
include("../test_shared_server.jl")
6360

6461
settestdoc("Base.")
65-
@test any(item.label == "Base" for item in completion_test(0, 5).items)
62+
@test length(completion_test(0, 5).items) > 10
63+
64+
settestdoc("Base.B")
65+
@test any(item.label == "Base" for item in completion_test(0, 6).items)
6666

6767
settestdoc("Base.r")
6868
@test any(item.label == "rand" for item in completion_test(0, 6).items)
@@ -175,7 +175,7 @@ end
175175

176176
@testitem "completion details" begin
177177
include("../test_shared_server.jl")
178-
178+
179179
settestdoc("""
180180
struct Bar end
181181
struct Foo

0 commit comments

Comments
 (0)