Skip to content

Commit 304aefa

Browse files
committed
Also fix test failing for silly reason
1 parent c539ec4 commit 304aefa

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

stdlib/REPL/test/replcompletions.jl

+32-3
Original file line numberDiff line numberDiff line change
@@ -1154,6 +1154,14 @@ let s, c, r
11541154
@test string(dir, "/") in c
11551155
@test r == 2:sizeof(s)
11561156
@test s[r] == joinpath(path, "tmpfoob")
1157+
1158+
# Homedir expansion inside Cmd string (#57624)
1159+
s = "`ls " * path * "/tmpfoob"
1160+
c,r = test_complete(s)
1161+
@test string(dir, "/") in c
1162+
@test r == 5:sizeof(s)
1163+
@test s[r] == joinpath(path, "tmpfoob")
1164+
11571165
s = "\"~"
11581166
@test joinpath(path, "tmpfoobar/") in c
11591167
c,r = test_complete(s)
@@ -1549,11 +1557,11 @@ test_dict_completion("test_repl_comp_customdict")
15491557
@testset "dict_identifier_key" begin
15501558
# Issue #23004: this should not throw:
15511559
let s = "test_dict_ℂ[\\"
1552-
@test REPLCompletions.completions(s, sizeof(s), CompletionFoo) isa Tuple
1560+
@test REPLCompletions.completions(s, sizeof(s), Main.CompletionFoo) isa Tuple
15531561
end
15541562
# Issue #55931: neither should this:
15551563
let s = "test_dict_no_length["
1556-
@test REPLCompletions.completions(s, sizeof(s), CompletionFoo) isa Tuple
1564+
@test REPLCompletions.completions(s, sizeof(s), Main.CompletionFoo) isa Tuple
15571565
end
15581566
end
15591567

@@ -2495,7 +2503,7 @@ let (c, r, res) = test_complete_context("global xxx::Number = Base.", Main)
24952503
@test "pi" c
24962504
end
24972505

2498-
# #57473
2506+
# #55842
24992507
let (c, r) = test_complete_pos("@tim| using Date")
25002508
@test "@time" in c
25012509
@test r == 1:4
@@ -2534,3 +2542,24 @@ let s = "@ignoremacro A .= A setup=(A=ident"
25342542
@test "identity"in c
25352543
@test r == 30:34
25362544
end
2545+
2546+
# #57307
2547+
let s = "unicode_αβγ.yy = named.len"
2548+
c, r = test_complete_foo(s)
2549+
@test "len2" in c
2550+
@test r == 27:29
2551+
end
2552+
2553+
# #55429
2554+
let s = "@time @eval CompletionFoo.Compl"
2555+
c, r = test_complete(s)
2556+
@test "CompletionFoo2" in c
2557+
@test r == 27:31
2558+
end
2559+
2560+
# #55420
2561+
let s = "CompletionFoo.test(iden"
2562+
c, r = test_complete(s)
2563+
@test "identity" in c
2564+
@test r == 20:23
2565+
end

0 commit comments

Comments
 (0)