Ad
  • Custom User Avatar

    Be careful about list of empty string: Arrays.asList("") and new ArrayList<String>() will be displayed in the exact same way in the assertion messages, while they are clearly not equal.

  • Custom User Avatar

    You won't be giving away possible solutions.
    If you click this checkbox:

    image

    then it will hide your comment from people who haven't solved the kata.

  • Custom User Avatar

    Language: Java;

    I am getting this output on the sample tests. I have passed the first few assertions but seem to hang up on cases where there arent the correct amount of words in the input. I am not sure why and would greatly appreciate any help.

    expected: java.util.Arrays$ArrayList<[]> but was: java.util.Arrays$ArrayList<[]>

  • Custom User Avatar

    I didnt say because I do not want to give away possible solutions.

    I will print the input not sure why that didn't occur to me. Thanks.

  • Custom User Avatar

    Try printing the input and figuring out why. I don't know why your code doesn't pass, you don't even say, but your code can be wrong or be inefficient and then only passes the sample tests and not the full suite.

  • Custom User Avatar

    this is a general question:

    I am passing the sample test but not the full test. How do I go about reaching the correct solution? If I could see the tests I can understand why I am failing but all I see is the expected and actual output.

    I have attempted to read the stack track but to me it is gibberish(because I do not understand it).

    I am not saying there is an issue with this kata however, I would greatly appreciate any advice/assistance because I run into these issues regularly.