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's assert_in_delta.
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?
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.