-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sets coverage. #11795
Sets coverage. #11795
Conversation
Add test for `rehash!(s::Set{T})`.
Ref: julia-dev |
Thanks for helping with test coverage! Honestly I'm not sure why there is a |
You are welcome! I've been reading about hashing and it's use in associative arrays, etc. But honestly I don't know if I'm just trying to change those red lines to green at coveralls. 😄 |
@JeffBezanson what I understood was that The cpp reference seems to also have something like this defined for sets. Perhaps there is indeed a use case? But does it apply to Julia also? |
@stevengj could you tell us why do we need |
No idea. Did I introduce it? |
Oh, wrong ping. |
@StefanKarpinski To be fair, it was |
It was my mistake, I looked at git blame, and misread by one line the name of the author: Which is why I changed it back. So it seems Steven never got the ping. @stevengj could you please give us some insight on this method when yo have the chance? He only changed the name from I'm sorry for the noise. cheers |
@Ismael-VC That is actually still not the right commit this e8d47e4 is the commit it was introduced and it was by @JeffBezanson . |
I think this still stands then. |
Yes, it was for precompilation. |
Ok! then, is the test good as it is? |
I suppose so; I guess there's no way to test |
Bump. Should we go ahead with this? |
Looks like this introduced a non-deterministic failure, see #11890. Happens sometimes, so not a big deal, we'll work out what's best to do here while hopefully keeping this method covered for correctness if we can. |
should be fixed by #11892 |
Add test for
Base.rehash!(s::Set{T})
.