From e5fcd73bbe0820c23de1661b6dd2dcd7f303d741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Venegas=20Castell=C3=B3?= Date: Sat, 20 Jun 2015 22:48:15 -0500 Subject: [PATCH] Sets coverage. Add test for `rehash!(s::Set{T})`. --- test/sets.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/sets.jl b/test/sets.jl index 0169b99b02460..0b1830d14dbb5 100644 --- a/test/sets.jl +++ b/test/sets.jl @@ -87,7 +87,12 @@ push!(c,200) s = Set([1]) @test isequal(sizehint!(s, 10), Set([1])) @test isequal(empty!(s), Set()) -# TODO: rehash + +# rehash! +s = Set(1:5) +k = s.dict.keys +Base.rehash!(s) +@test !isequal(s.dict.keys, k) # start, done, next for data_in in ((7,8,4,5),