Ad
  • Custom User Avatar

    Here are the tests above being run: Time: 509ms Passed: 12 Failed: 0
    Here is what happens when I attempt: Passed: 3759 Failed: 1 Errors: 1

    How is it possible that I'm passing the sample tests, but failing the actual test case, and if there are suppose to be only 40 random cases how am I passing over 2000?

    I understand many people have passed the kata already, but unless I'm failing a test case I have not included, it makes no sense I can't pass the kata.

  • Custom User Avatar

    Javascript test case issues?

    These tests are passing as well as all the 1000+ random test cases, but when I go to attempt it fails?

    a1 = [121, 144, 19, 161, 19, 144, 19, 11];
    a2 = [1111, 121121, 144144, 1919, 161161, 1919, 144144, 1919];


    Test.assertEquals(comp(a1, a2), true)

    Test.assertEquals(comp([], []), true)

    Test.assertEquals(comp(null, null), false)

    Test.assertEquals(comp(true, null), false)

    Test.assertEquals(comp(true, true), false)

    Test.assertEquals(comp(null, true), false)

    Test.assertEquals(comp([true], [1]), false)

    Test.assertEquals(comp([], [,null,]), false)

    Test.assertEquals(comp([null], [0]), false)

    Test.assertEquals(comp(1, [0]), false)

    Test.assertEquals(comp([,,,], [,,,]), true)

    Test.assertEquals(comp([[],,], []), false)