Skip to content

Commit 4bc9438

Browse files
committed
added test for bugfixed empty! of RobinDict
1 parent d7f992b commit 4bc9438

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_robin_dict.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ end
330330
@test h.count == 0
331331
@test h.idxfloor == 0
332332
@test length(h.hashes) == length(h.keys) == length(h.vals) == length0
333+
for i=-1000:1000
334+
@test !haskey(h, i)
335+
end
333336
end
334337

335338
@testset "ArgumentError" begin
@@ -424,4 +427,4 @@ end
424427
h[i] = i+1
425428
end
426429
check_invariants(h)
427-
end
430+
end

0 commit comments

Comments
 (0)