Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.I think you both used global
i
.Beginning of JS random tests:
I just passed the JS kata and got
Passed: 49 Failed: 0
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.
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?
Any suggestions what test8 tests?
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)