Ad
  • Custom User Avatar

    I may have been a little over zealous in my test cases ;)

  • Custom User Avatar

    What I usually do when I'm trying to determine what the test parameters are for a kata is to log them out using conole.log(). I'm not hiding the test cases, I just don't see any way to make them visible.

    I suspect you're failing on this test case: scoreHand(["A", "J", "A"])

  • Custom User Avatar

    I must have missed that the first time I read "JavaScript: The Good Parts". Thanks for reminding me.

  • Custom User Avatar

    The test cases are not random to ensure that corner cases are covered, as you stated. The correct answer to ["8", "A", "A"] is indeed 20. If you answered 10 that is incorrect. According to the spec the result must be the highest score less than or equal to 21.