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.
That's because you need 4000 honor to approve translations.
This looks good to me. I tried to approve it but for some reason I get a 401 Unauthorized response when I click the "Approve" button.
I have ported the original closely, but I avoided the use of the solution code in the test, since this is a bad practice.
Thanks for the feedback! I've added the random test, and added a basic test as well that closely matches the original example.
Please take a look at my tests case and add some random test to your translation.
This is not ideal, since it will return
NULL
if the value is not numeric. This puts the responsibility to check the return value on the calling code. A good solution would be to throw an exception if$n
is not numeric.