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.
This comment is hidden because it contains spoiler information about the solution
Approved.
Approved
Just added them to Ruby and several other languages, now all of them have the mentioned edge cases
The test is perfectly valid since the kata does not specify any constraints on character range, a.k.a any character is to be expected and handled gracefully
Perhaps reading this might help ~~ Also not a kata suggestion
Not a kata suggestion
Not a kata suggestion
Above fork approved.
fork that adds repr(pin) to python so that the string literals are string literals instead of vaguely looking like string literals while actually being text plus quotes which is worse than showing nothing because it's misleading
well, the test output is poor, for example:
testing for validate_pin('\')
which is invalid syntaxIn that case, your PC is unaware of the nature all edge cases provided by the kata on this site, and your code is incorrect because it does not handle these edge cases. Please look very carefully at the error messages to debug your code. Good luck.
Everything is going well on my PC, but the site gives an error on the combinations ( 123 ) and ( 09876 )
Groovy Translation (It doesn't use regex)
The kata is labelled with
Regex
, and you chose to avoid it :PThat's literally the point of this exercise: to validate the inputs. In the context of ATMs maybe it's not so accurate (probably impossible), but from 3rd example in description it should be clear that theoretically any data could be in input.
It seems fine for 7kyu, especially if you use regex.
Loading more items...