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.
I have the following test case:
Test.assertEquals(flatten([[1, 2, 3], [4, 5, 6]]), [1, 2, 3, 4, 5, 6]);
Which produces the following output:
Test Failed: expected [1, 2, 3, 4, 5, 6], instead got [1, 2, 3, 4, 5, 6]
Can someone give me a hint? Is it about the identity of the array object? Should I overwrite the input array so that it's the same object? I tried that but it doesn't seem to work either, but maybe I'm doing it wrong.