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.
You do not need the 'return' for Ruby in this case, though. The == operator will always give a return value of true or false.
this is really just a copy+paste from rubydocs...
kindergarten enrty level...
Wait, why is the ruby example test cases only comments?
This is why I hate accepting code by others when I don't know the language.
Anyone wanna help me make a quick example test case?
Here is the C# example test case as an example:
Would this work?
This error can come up if you run test tests but there are no test cases present, which is the case in this kata :D Either hit submit to check if your code passes or create your own test cases
Plenty of people have submitted Ruby solutions, so it most be your code.
on ruby it gives an unknown error msg. have no idea if my code works or not just an error msg.
I'm having a similar issue.
Output:
Expected: McClane john, instead got: McClane john
My issue was a leading space, which isn't shown in the output.
Yea, I realized that about an hour ago and fixed everything up. Thanks for the help though!
Show us your code.
Your code returns extra space at the beginning of the string. That's why it fails. For example, with your code
nameShuffler('Richard Cheese')
returnswierd its not worknig but in my command line it gives back the good answer...