Skip to content

Commit 5449069

Browse files
committed
REPL: Add additional tests from JuliaLang#55518 discussion
1 parent 498aec3 commit 5449069

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

stdlib/REPL/test/replcompletions.jl

+26
Original file line numberDiff line numberDiff line change
@@ -2524,10 +2524,36 @@ let s = "using .CompletionFoo: bar, type_"
25242524
end
25252525

25262526
# #55518
2527+
let s = "CompletionFoo.@barfoo nothi"
2528+
c, r = test_complete(s)
2529+
@test "nothing" in c
2530+
@test r == 23:27
2531+
end
25272532
let s = "CompletionFoo.@barfoo kwtest"
25282533
c, r = test_complete(s)
25292534
@test isempty(c)
25302535
end
2536+
let s = "CompletionFoo.kwtest(x=type"
2537+
c, r = test_complete(s)
2538+
@test "typeof" in c
2539+
@test !("type_test" in c)
2540+
@test r == 24:27
2541+
end
2542+
let s = "CompletionFoo.bar; nothi"
2543+
c, r = test_complete(s)
2544+
@test "nothing" in c
2545+
@test r == 20:24
2546+
end
2547+
let s = "CompletionFoo.bar; @ti"
2548+
c, r = test_complete(s)
2549+
@test "@time" in c
2550+
@test r == 20:22
2551+
end
2552+
let s = "x = sin.([1]); y = ex"
2553+
c, r = test_complete(s)
2554+
@test "exp" in c
2555+
@test r == 20:21
2556+
end
25312557

25322558
# #57611
25332559
let s = "x = Base.BinaryPlatforms.ar"

0 commit comments

Comments
 (0)