Ad
  • Custom User Avatar

    Unfortunately, I cannot edit the tests any more, as too many people have completed this kata.

    1. Test.randomize() is part of the test quite built-in to Codewars. It randomizes the order of the given array.
    2. That is true. And I am testing the function written by the coder. So that's why I make multiple tests when they should have the same result. If there's some edge case to the coder's solution, then they could fail on a seemingly straight-forward test case.
    3. Could you paste in the messages for those mentioned tests? The test messages should print out the input for each test.

    Infinity should be AN, I think. The idea is to make sure the value is a number of some kind, so Infinity should be allowed. As I said, I cannot add this in, but that's a good idea, nonetheless.