Ad
  • Custom User Avatar

    I think the SnailTest2Empty is not testing right. Does anyone has the same problem, that every Test is succesfully but not the last test. Or does anyone has solved it yet?


    SnailTest2Empty(SnailTest)
    Log
    [[]] should be sorted to []

    I think there is something wrong how to initialize the empty array.

    I did the exception of an empty array like this: (but it does not seem to work)


    if(array.length <= 0){
    int[] i = new int[0];
    return i;
    }

    this must be right.

    It is sad, because I did solved the kata problem but with the empty array exception it is not working.