-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
[word-count] Tests fail because expectation and result are… equal! #67
Comments
Arg... You've run into a rather disturbing (IMO) Elm bug: https://github.com/elm-lang/core/issues/403 It turns out == equality is currently unreliable for data structures such as Dict. I forgot to survey the existing tests for this potential issue after I learned about it. The best answer I have is to change the test to run the result Dict through toList (which returns in key order) and test against that. You're welcome to put in a PR to that effect, or I'll do it when I'm back in front of my computer. |
I will try my best. If I do understand you correctly and am able to fix it I'll PR. |
There seems to be a bug in elm (elm-lang/core#403) which makes equality checks fail when the should succeed. FIX exercism#67
OK, PR'd, along side another one I had to do to make the build-script more robust for |
So what did I wrong here?
Output of
elm-test
(slightly reformatted to make the obvious even more obvious!):Since the results seem to be okay, I have already submitted my solution.
The text was updated successfully, but these errors were encountered: