Ad
  • Custom User Avatar

    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.