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.
Yeah you are very right. I came across the second argument yesterday when I was solving another kata and it crossed my mind how silly I was solving some other katas. Thank you very much for your comment!
Array.new() can take a second argument which sets the default value if an index is not found within the Array.
Oh, I thought numbers where allowed, don't know why. Thank you !
Read rule 3
testtes3t5(TestPigLatin)
expected: but was:
My program fails on this test. So the input string is "tes3t5" ? if so then the right answer is es3t5tay which I return. If the test is "es3t5" I return es3t5way which is right again. What am I missing ? Is the test not the strings that I just mentioned ?