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.
Ruby:
Test.assert_equals
should be used instead ofTest.expect
No random tests in JavaScript (at least).
BaseValue limit should to be provided in description.
Needs random tests
Also this is a duplicate of many existing katas (under the name of look-and-say numbers).
There is a flaw. You don't test any bases below 2 or above 36. The code can use the built-in string method, but it should only do so when base is between 2 and 36. Below 2 should return nil or [] or whatever else you deem fit. Above 36 would have to be implemented another way. If you only wanted to demonstrate the "clever" way, it should at least return nil when base is above 36. This way, people will see the limitations of the built-in method.