Closed MarcosX closed 9 years ago
Hi, thank you. I've made these koans for one dojo to test elixir, then I've never had the time to improve and maintain it or develop something else with elixir. Others have done, but probably you're going to find bugs as I accept PR without testing them and because elixir has evolved a lot since our dojo.
Your code seems good, just don't forget to replace "==" by __?
Hi all, I'm pretty new to Elixir and using this Koans to learn more about the language and I stumbled on the following issue (while meditating about "Assertions are smart"):
assert
function doesn't seem to be raising aExUnit.ExpectationError
anymore, instead it's raising aExUnit.AssertionError
."Expected 1 to be equal to 2"
but now it is"Assertion with == failed"
Here is an example of changes I've made in my local copy
Looking at the code for version 1.0.4 (which is what I have now), it seems like we might need to update.
from https://github.com/elixir- lang/elixir/blob/a3dd9e247375bd99dbac115cdd6d11f08d71952f/lib/ex_unit/lib/ex_unit/assertions.ex
Let me know what you all think and I can make a PR if needed :)