Created
May 13, 2016 12:03
-
-
Save daveshah/655c458e343ccc02e74d93d36e1a6f78 to your computer and use it in GitHub Desktop.
I prefer the latter to the former... :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Assertion with == failed | |
code: Words.count("co-operative") == expected | |
lhs: %{"co" => 1, "operative" => 1} | |
rhs: %{"co-operative" => 1} | |
Assertion with == failed | |
code: Words.count("co-operative") == %{"co-operative" => 1} | |
lhs: %{"co" => 1, "operative" => 1} | |
rhs: %{"co-operative" => 1} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test "hyphens" do | |
expected = %{"co-operative" => 1} | |
assert Words.count("co-operative") == expected | |
end | |
test "hyphens" do | |
assert Words.count("co-operative") == %{"co-operative" => 1} | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment