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.
It's
MORSE_CODE
.Because of that. Closing.
You have to return max 5 results.
It's an old kata bug :( Because the test cases are already locked I've updated in the descriptions what you should do.
Triple and double digits have to go sequentially in each num. (zzz555zz z55zzz-> 1) (z5zzz55zz z5zz5zz ->0)
The test cases below your code block are not provided, and have only a dummy test that compares the string literals of "actual" and "expected". You can either copy in your own unit tests, or ignore them and submit.
Same as you,
You can print the input to the console to see where you went wrong. You seem to be failing these two tests:
Test.expect(!validate('fjd3IR9.;'), 'Expected false');
Test.expect(!validate('fjd3 IR9'), 'Expected false');
The Kata test cases are correct so I think you need to double check your code. Without seeing your code I can't directly comment on why you failed but I assume it's because you are allowing non-alphanumerical characters to pass. If you need any help, just shout me.