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.
Doesn't work.
clever solution - BRAVO !
Interesting solution but doesn't preserve types (for example the bool
false
would become a string"false"
. It would not work as expected with the example in the kata description.This solution is so simple. Clever
nice
Yeah this is awesome tbh. Nice.
What in the world is this, man?! crazy, but liked it :)
hi there!
I am new coding, I solve this kata, but I really want to understand how you do it.
Could you please explain a lil bit for me.
Thank you, nice work!
Sample tests expect true or false instead of the post code or "Not a post code".
The instructions are ambiguous. It is unclear that alphanumeric characters are allowed the post code but not between its characters. The examples shown in the instructions do not exhibit any extraneous alphanumeric characters.
Many thanks for taking the time to add more fixed tests, greenlit (i.e. Kata voted as "Very Satisfied") :D
I've create another 10 Unique Test cases
Codewars Forums - Kata Best Practices - Have Full Code Coverage
While having (only) 10 fixed assertions in the entire test suite isn't that bad, it is still somewhat inefficient to prevent logically flawed and/or hardcoded solutions from passing. You could either (1) add at least 10 more unique, distinct fixed assertions including edge cases (the minimum requirement to resolve this Issue) or (2) write 100+ random tests as per standard Codewars practice (and is generally preferred over just 20+ fixed tests)
Is this really a valid post code?
e26265325325c1ap4bx
Expected: true, instead got: false
According to your solution, validating postcodes is up there with Quantum ChromoDynamics.
You can't fit that in six examples, really.
Loading more items...