Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
depends on how you define "whitespace". In the description, those are intended to only be
" "
, not line feeds"\n"
. So the expected result is consistent with the description (means the input contains several consecutive line feeds)For Java, the last part of the details reads: "Any whitespace at the end of the line should also be stripped out."
My solution does away with any whitespace at the end of the line, but one of the tests fails, see below:
org.junit.ComparisonFailure: expected:<...
e
e[
]> but was:<...
e
e[]>"
Should this test not pass on account of the above-mentioned part of the requirements?
Thanks!