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.
@cristian.izaquita seeing you code, you can't compare arrays (more generally, objects) with
===
. Thatif
can be removed and the code will still work.Test.assertEquals(XO('xo0'),true);
that test expects true, not false. And the input is always a string, not an array of strings.That's a 0(zero) not an upper O(Oh)
The tests stop executing after first wrong answer encountered.
If you don't receive any error message, then it fails silently.
Please, read carefully.
There is an error, expecting FALSE on this input [ 'x', 'o', '0' ], must be TRUE because the number of Ohs is the same as the number of Exes.
JavaScript.