By reading the description I can't figure out how to handle cases where n is even and is not multiple of 4.
No random test in ruby and JS
Randomness is (still) not taken very seriously: https://www.codewars.com/kata/reviews/55dc1b0c865e936b3d000081/groups/5d000809a535d5000181a804
Plus all the other issues below. Time to retire...
This comment is hidden because it contains spoiler information about the solution
The description should clearly state that it is supposed to generate the random code. Also, the tests do not check for digits presence and can be passed without bothering with them. Probably the same with letters...
Needs random tests
In actual tests:
should be able to have default value
But it's nowhere mentioned.
The prompt can be clearer.
There's an issue with the server-side tests in Python that throws an error when using import string, even though all tests pass. Using the variable name string in the function args shadows this import, so if there's a test that relies on using string= as a kwarg instead of as an arg, it should be changed.
C#: Nevermind this being a duplicate, but if I include year 0, I get the error that the year must be 1 or greater (and smaller than 9999, but this isn't tested), which is fine, since year 0 doesn't exist anyway. What isn't fine is that when I return false for 0, I'm told this is wrong and the tests expect true. Zero is out of range, so it should be false or maybe expect an exception to be thrown.
Either needs to be tagged with regex or ranked as higher difficulty.
No sample test cases to test against