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.
Not.
There is one way to do nothing.
The author is not responding. Closing.
This comment is hidden because it contains spoiler information about the solution
Except that's not at all what I asked to you... (well, I wasn't clear enough)
you should print the output on CW, not on your ide. Ofc you get false when doing it on your idea, we already knew that. The interesitng part is that, when I tweak just a bit your code so that it prints the output on CW, here is what I get:
So there is definitely a problem, but seems to me it's definitely not in the kata itself.
errrr...
seems to me that your code is telling true, here, and that it's not was is expected.
Print your output to the console to be sure, but imo, the problem is in your code.
the real question is: is your code still returning false on that specific test on cw? If not, are you sure you're not reading the input of one test with the output of another or vice versa, or are you mutating something (I don't do scala)?
"put in an easier way": paste here the complete message you get on cw.
See the "invalid", in there? Meaning the expected answer is false. So if the assertion fails, that means that your code isn't returning false.
corolary:
The parentheses are nested.