Ad
  • Custom User Avatar

    If it's published, it'll show up for people who start fresh, or after resetting your solution.

    But it's not published.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Missing comma in the first sample test case!

  • Custom User Avatar

    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.

  • Custom User Avatar

    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;-)