Skip to content
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! #68

Closed
NobbZ opened this issue Apr 17, 2016 · 1 comment
Closed

Comments

@NobbZ
Copy link
Member

NobbZ commented Apr 17, 2016

So what did I wrong here?

Output of elm-test (slightly reformatted to make the obvious even more obvious!):

  count one word: passed.
  count one of each word: passed.
  multiple occurrences of a word: FAILED. 
    Expected: Dict.fromList [("blue",1),("fish",4),("one",1),("red",1),("two",1)]; 
    got:      Dict.fromList [("blue",1),("fish",4),("one",1),("red",1),("two",1)]
  ignore punctuation: FAILED.
    Expected: Dict.fromList [("as",1),("car",1),("carpet",1),("java",1),("javascript",1)];
    got:      Dict.fromList [("as",1),("car",1),("carpet",1),("java",1),("javascript",1)]
  include numbers: passed
  normalize case: FAILED.
    Expected: Dict.fromList [("go",3),("stop",2)]; 
    got:      Dict.fromList [("go",3),("stop",2)]

Since the results seem to be okay, I have already submitted my solution.

@NobbZ
Copy link
Member Author

NobbZ commented Apr 17, 2016

Sorry for double post!

@NobbZ NobbZ closed this as completed Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant