Ad
  • Custom User Avatar

    The translator is Giacomo (his i is global) and now it is impossible to change something because of the 500+ guys who passed JS kata.

  • Custom User Avatar

    I think you both used global i.

  • Custom User Avatar

    Beginning of JS random tests:

    for (i=0;i<40;i++){
    

    I just passed the JS kata and got
    Passed: 49 Failed: 0

  • 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

    I don't understand: there are only 40 random tests and not 1000+... Furthermore 2472 guys passed the JS kata so I am quite sure there are no errors. Except the first test you mention where do the others come from?

  • Custom User Avatar

    Any suggestions what test8 tests?

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