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.
If it's published, it'll show up for people who start fresh, or after resetting your solution.
But it's not published.
Thanks for your suggestions! As I'm sure you can tell I'm pretty new to all this so glad to be informed of best practices.
Totally slipped my mind that there could be an equal case, I'll add that asap.
Thanks for pointing that out! Strangely, in the editor that comma is there so I'm not sure why it wouldn't show up now that it's published.
Missing comma in the first sample test case!
Returning inconsistent datatypes is not a Best Practice. You could just as easily ask for a
""
return value (which would also be falsy).What are we to return when scores are equal? This is probably going to be a possibility when random testing is added.
First testcase
,
missing (in front of last 'Zeus Parker'): Test.assertEquals(nameGame('Alan Smith', 'Zeus Parker') 'Zeus Parker'...By the way... needs some random tests;-)