-
Notifications
You must be signed in to change notification settings - Fork 178
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
Improve strictness tests #1019
Comments
Just started and I'm seeing things like λ> import qualified Data.Map.Strict as M
λ> M.fromList [(1,undefined),(1,2)]
fromList *** Exception: Prelude.undefined
λ> M.fromAscList [(1,undefined),(1,2)]
fromList [(1,2)] Hope there aren't too many of these... Edit: To clarify, this is not a bug. Both do not allow bottom into the map. It's just inconsistent. Edit: Turns out this is a known issue #473 |
Uh oh.... I assume that second one extracted to a |
I'm not sure what you mean. It's just a consequence of the different implementations. |
Looking around at the tests we have today, we seem to be using two libraries:
We can test strictness by detecting bottoms, but the We can perhaps even inline the bits of |
Strictness tests need to be in good shape to avoid bugs like #996
The text was updated successfully, but these errors were encountered: