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.
I have updated the kata description with examples of invalid input. I appreciate your input!
If you are going to enforce that, then you should update the description telling about this strictness.
I don't see the example strings written by @paulgator as partially correct, but as correct description strings inside some garbage characters which can be ignored or not, depending on the kata description.
Added those two test cases plus a few others. Thank you!
Please add to test cases: strings that only partially contain correct dice notations and should return false. For example: "abc2d3+4", "4d6+8qwerty".
Kata description states: "Valid passwords will only be alphanumeric characters."
I have not found in description if _ symbol (underline) is allowed in passwords or should be excluded.
Your tests do not cover this issue either.
\w includes A-Z, a-z and 0-9 as well as underline. Some accepted solutions use \w token.
Please modify description/tests.
Although it's easy to figure out what has to be fixed, I'd prefer to see more informative description added. Good kata!