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.
Use assert_equals
test_expect
...plus all the below issues
This comment is hidden because it contains spoiler information about the solution
to_s(2)
(see this)There should be some tests with the minimum width less than the number of digits. Random tests would be nice too.
Since it's explicitly mentioned in the description, there should be a test to check that
String#to_i(int)
isn't used.Needs random tests
Also base conversion is a duplicate