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.
should be fixed
proposed fix here
in solution we have array, but in tests is vector.
make it vector in solution as well.
also console always print:
expected [unsuported type]
actual [unsuported type]
thats why not possible make some debuging right here.
Check size of string after trim, and ensure you are deleted all beginning and ending spaces.
Same thing. How did you make it work ?
@GiacomoSorbi could you take a look at this?
I am getting ths same error. My code runs fine locally using Gnu and Clang builds.
The sample tests do need need to test everything covered by the full testing on final submit
also make sure you enter as ' ' with a space between.
Why that should be 2? Test says
should_allow_multiple_correct_guesses
, doesn't matter how many times you test a correct answer it should never consume a life.Correct guess = unchanged life count
Wrong guess = life--
I'm sure the codes are okay, but anyway you shouldn't care for particular codes as as the code table is built in the kata - just use it and you'd be fine.
I get collapsed with that mess. I think, that's because test's author uses wrong code for "." or "!". At least, my own test with same string works just fine!
You may try printing the output of your function.
Note that CodeWars console output is HTML-rendered, so make sure to use
<pre>
tag or hexlification to make sure that the string that you see is exactly the same string you were printing.