The first element in the result array should be the element that has 0 in the same position in the sortingArray and so on. You are not far
Thanks, did not know about Test.randomize and I changed the random test so it can not be cheated.
I added random test and an edge case test to test empty arrays.
Ok thanks. I updated the test cases.
I checked the similar katas and did not find the same requirement.
yes I'am trying to change it to assertSimilar but the server keeps timing out
I did that in purpose. You should change the declaration.
I edited the initial solution to avoid confusion.