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.
print the output
Well, nothing special, except that the long message tests really check that your code is doing its job. With short tests, one can easily cheat and tweak, optimizing the code for the tests, while in fact the short tests are mostly for checking the basic correctness and corner cases. Long message tests are real tests.
After working quite a few hours on this I finally got it down (or so I thought). It passes the first 17 tests but I get a KeyError: '-.....' on the first long message. Is there something special about the long messages that can mess my code up?