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.
Description already mentions this part:
function should be case insensitive to pass the tests
Though, enforcement of Regex should not be done as this is an 8kyu kata (they can still learn the relevant technique by viewing other solutions)
This comment is hidden because it contains spoiler information about the solution
Fixed
Fixed for JS.
In any case, this isn't the kata's problem so it's not an issue.
This comment is hidden because it contains spoiler information about the solution
Again:
"You have no check for null in your code.
In the example tests you there are null tests with n=0.
But in the real(attempt!) tests there are also null tests with n>0."
That is why your solution fails. You do not check for null.
You check n first, if it is smaller or equal zero.
You have no check for null in your code.
In the example tests you there are null tests with n=0.
But in the real tests there are also null tests with n>0.
I hope this helps to solve the problem in your code. :-)
No issue!
Do not mark as an issue, if there is only a problem in your code!
Yes, it definately should. I had a real annoying time trying to finish the kata since it said nothing about case sensitivity in the description... spent a long time wondering if my regex was off or not.
If so, case insensitivity must be explicitly mentioned in kata details, I think. Or at least it must be clear after looking at test cases.
I.e. Test.assertEquals(validateHello('Halloween'), true);
Actually he did change that too, it is just that CW does not update example tests not to erase the ones that you could have implemented yourself.
Copy and paste this, if you wish:
great idea, I thought it was maybe too simple as it is