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.
This comment is hidden because it contains spoiler information about the solution
It would be nice if there was an additional test case that deals with words that have both a leading/trailing special character and an internal special character. None of the current test cases deal with this scenario but it comes up in the random tests.
Python new test framework should be used (Refer this & this for more detail)
Ruby 3.0 should be enabled (Refer this & this for more detail)
This test failure is a bit confusing to me, given that the kata description requires that we keep the punctuation in its original location, which is opposite to what this expected value would suggest. It looks like these 'random value' test cases are expecting all the punctuation to be deleted.
Are we supposed keep punctuation in its original location in some situations, but not others?
I'd love to know if there's something obvious I'm missing in my understanding of the problem so I can solve the problem properly. Thanks! :)
TEST:
"Testing for "you're codewars blink, eat jiggery-pokery callipygian four dice in"
It should work for random inputs too -
Expected: "yorue cadeorws bilnk eat jeeggikoprryy caagiillpyn four dcie in",
instead got: "yor'ue cadeorws bilnk, eat jeeggik-oprryy caagiillpyn four dcie in" "