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.
How has this developed? Is is still an issue?
Sorry about that :)
That's one of the tests for python in the 'Random Tests' section (I'd check but need to make sure I'm not making a mistake on my end and pass first before I can see the test cases)
Python's match() only returns true if the regex matches at the beginning of the string (this is, IMO, insane). The tests should be rewritten to use search() instead.
Yeah... I've had a look, but without knowing Python, it's a bit tricky guessing what the problem is. @jhoffner was the one that wrote it, so perhaps he can have a look..?
In the Python vrsion of the kata, your regex has to match the whole string. That must be a bug in the translation?
You don't have to match the whole string; you just have to make any kind of match. For the JavaScript version,
Mod4.test(str)
is used, so as long as some kind of match is made, you'll pass. Not sure about the other language versions (I didn't write them), but they should be the same.Which language? I only wrote the original JavaScript version...
This comment is hidden because it contains spoiler information about the solution