Ad
  • Default User Avatar

    It isn't possible that this is an example of a random test array. Their sizes are one of these: [100,200,500,1000,2000]. You have specifically mentioned that this is Test #5, and these arrays have words in exactly the order of the 5th Sample_Test, however some words are missing. Nowhere in the kata are arrays of length 6. Sorry, but you have confused something. There is no problem with the JS tests, random or otherwise.

  • Default User Avatar

    Your comment here shows wrong arrays of words, and gets the wrong outcome... but I checked that your eventual solution for this test and your code does in fact run the expected sequence of the game, by the rules, and you get the correct outcome. So, no, there's nothing wrong with the JS tests. It would be preferred that you go back and edit the comment in a situation like this. Regardless, glad you enjoyed the kata challenge.