Ad
  • Default User Avatar

    This solution is incomplete... it's not catching the case where the first array has a non-array element and the second array does.

    For example, this test will not pass:

    Test.expect( ![1,1].same_structure_as([2,[2,2]]), "[1,1] not same as [2,[2,2]]")

    The test cases are too weak.