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 looks correct now!
I believe there's an error in the sample tests:
Test.assertEquals(validatePIN("123456"),false, "Wrong output for '1234567'")
It's asserting that
123456
should be false while123456
is actually a 6-digit PIN code. Looking at the error message, I think the author wanted to assert1234567
and not123456
.If you have the right solution, you could be failing the TEST but passing ATTEMPT.