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.
You can just 'print(text)' if you want to know what the test string is. You may not be replacing the non-alphabetic characters with whitespaces. This wasn't tested in the sample tests
My Solution passes the Sample Tests but are failing on a Random Test.
Problem is without the Teststring its not possible to find out why it fails.
The output of the Tests is very poor.
Ruby, both sample tests and on submit:
The instruction examples are very poor. The errors don't show the input so it's a guess game to understand what they precisely expect... I've spend way more time trying to understand how they want us to "cut" the words than actually work on the solution... I hope they will clarify the examples!
Clarifying that ' alone does not count as a word would be nice.
Overall, it was a fun and interesting kata.
done
https://docs.codewars.com/training/troubleshooting#print-input
you need to print your input and debug your code. your code fails examples that are in the description, e.g. for
" //wont won't won't "
you return the list["won't", "wont", " "]
. A bug in your code is not a kata issue please ask questions when you need helpIn C# version numerous sample tests work in other environments, but fail here. In one of the tests I would be told it expected "aa" but my code returned "a". I then out of curiosity fixed it so my code would return "aa", for it to then fail, telling me my response should have been "a".
print the input
I need the string of this test. It's not in the test area.
"Fixed Tests
expected [ 'a', '', 'of' ] to deeply equal [ 'a', 'of', 'on' ]"
Thank you
Lua translation!
for test "e e e e DDD ddd DdD: ddd ddd aa aA Aa, bb cc cC e e e"
Exist differents solution that are correct according to the descrption. Not only --> ["e", "ddd", "aa"]
the same for test "'a 'A 'a' a'A' a'a'!"
if we are considering the order on the answers ["'a", "a'a'", "'a'"] or ["a'a'", "'a", "'a'"] i think we can also consider to have ["a'a'", "'a'", "'a"]
This comment is hidden because it contains spoiler information about the solution
Error I've got:
Incorrect match: words not present in the string.
Your output: gmrfmwngmrfmwn, gmrfmwn, gmrfmwngmrfmwngmrfmwn.
One possible valid answer: gmrfmwn, dzt, rvjqefen
Expected: True
But was: False
There is no info in the Kata description that I should also look for a substring, because this is how I understand this error:
"gmrfmwngmrfmwn" - this should count as two occurances of "gmrfmwn"
"gmrfmwngmrfmwngmrfmwn" this should count as three occurances of "gmrfmwn"
Loading more items...