Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
As others have pointed out, the assertions are broken. You can either fix it by running
abs/1
on the difference between expected and actual, or, better yet, ditch your home made assertion and use ExUnit'sassert_in_delta
.Ruby methods are idiomatically snake case. Rename method
str_count
.This comment is hidden because it contains spoiler information about the solution
This issue hasn't been resolved. The Elixir version should be bumped to something 1.4.x, and the tests should all expect strings. Can we ping @jhoffner, who is sensei for the kata? How do I get involved fixing it?
Ruby version of Create Phone Number is not idiomatic. Method names should be underscored, not camelCased.