@@ -1154,6 +1154,14 @@ let s, c, r
1154
1154
@test string (dir, " /" ) in c
1155
1155
@test r == 2 : sizeof (s)
1156
1156
@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
+
1157
1165
s = " \" ~"
1158
1166
@test joinpath (path, " tmpfoobar/" ) in c
1159
1167
c,r = test_complete (s)
@@ -1549,11 +1557,11 @@ test_dict_completion("test_repl_comp_customdict")
1549
1557
@testset " dict_identifier_key" begin
1550
1558
# Issue #23004: this should not throw:
1551
1559
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
1553
1561
end
1554
1562
# Issue #55931: neither should this:
1555
1563
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
1557
1565
end
1558
1566
end
1559
1567
@@ -2495,7 +2503,7 @@ let (c, r, res) = test_complete_context("global xxx::Number = Base.", Main)
2495
2503
@test " pi" ∈ c
2496
2504
end
2497
2505
2498
- # #57473
2506
+ # #55842
2499
2507
let (c, r) = test_complete_pos (" @tim| using Date" )
2500
2508
@test " @time" in c
2501
2509
@test r == 1 : 4
@@ -2534,3 +2542,24 @@ let s = "@ignoremacro A .= A setup=(A=ident"
2534
2542
@test " identity" in c
2535
2543
@test r == 30 : 34
2536
2544
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