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.
There's alredy an abundance of katas asking you to "compare the input with some fixed values and return a string".
Using
switch
is not enforced.You need to add clear decription for different choices. As of now it could be read from the test only.
Please approve the Ruby translation when you can.
Not at all, thanks for your help!
This comment is hidden because it contains spoiler information about the solution
Ruby translation submitted for approval.
I don't know if it can be done, but maybe you could force the use of switch, I've tried using ternary operator and it also passes.
Another good addition could be a default case.
Great beginner Kata! I would suggest providing more details in the instructions section so that the user doesn't have to infer the specific strings that need to be repeated for each case.