Ad
  • Custom User Avatar

    Print something besides the input value, that's not the input of the test your code is failing. BTW I moved the test you're failing to the first group, because it expects true.

  • Custom User Avatar

    You're passing only the first 2 tests, but there are more hidden tests when you hit 'Attempt'.

    Are you returning nil for empty array ? It should be []

    Also plz reply to your previous post, don't create new ones.

  • Custom User Avatar

    Read these logs as: expected some array (your output) to equal expected output.

    Clearly, your output isn't sorted.

  • Custom User Avatar
    Expected
    <[]string | len:5, cap:8>: ["cod", "code", "ewar", "ar", "wars"] <- This is your answer, not sorted
    to equal
    <[]string | len:5, cap:5>: ["ar", "cod", "code", "ewar", "wars"] <- This is the expected answer, sorted