Skip to content

Commit fdff929

Browse files
committed
follow up 4052c19, more sensible broken test
1 parent 4052c19 commit fdff929

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/test_virtualprocess.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,18 +1699,20 @@ end
16991699
test_sum_over_string(res)
17001700
end
17011701

1702-
@static VERSION v"1.7-DEV" && let
1702+
let
17031703
# adapted from https://github.com/JuliaLang/julia/blob/ddeba0ba8aa452cb2064eb2d03bea47fe6b0ebbe/test/dict.jl#L469-L478
17041704
res = @analyze_toplevel begin
17051705
using Test
17061706
@testset "IdDict{Any,Any} and partial inference" begin
1707-
d = Dict('a'=>1, 'b'=>1, 'c'=> 3)
1708-
@test a != d
1709-
@test !isequal(a, d)
1707+
a = IdDict{Any,Any}()
1708+
a[1] = a
1709+
a[a] = 2
1710+
1711+
ca = copy(a)
1712+
ca = empty!(ca)
1713+
@assert length(a) == 2 # FIXME this statement should be abstracted
17101714

17111715
d = @inferred IdDict{Any,Any}(i=>i for i=1:3)
1712-
@test isa(d, IdDict{Any,Any})
1713-
@test d == IdDict{Any,Any}(1=>1, 2=>2, 3=>3)
17141716
end
17151717
end
17161718
@test_broken isempty(res.toplevel_error_reports)

0 commit comments

Comments
 (0)