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
JS fork resolving this issue
mocha/chaiassertions andlodashfor randomnessHaskell translation
Fixed tests below should be added to all languages
you yo ou u yuouyouyouTo fix this from the testing side, whoever set up the tests should be using == (value comparison) instead of is (reference comparison) to compare strings. If this is not a deliberate decision on their part, it's a mistake in the test setup.
This comment is hidden because it contains spoiler information about the solution
Python tests check for reference equality of coupon codes, which seems to be wrong. Reference solution will, and valid solutions are expected to, reject valid
entered_codewhich happen to not be interned to the same instance asentered_code, even if their values are equal.I think that value equality of coupon codes should be preferred, but if not, then description has to specify that "valid code" is expected to be equal to an expected code by reference, and not value.
Prolog translation requires a spec of the date. I have to assume what itrepresents from an example test case
The description example must be included in sample tests for all languages.
JS:
You might want to rename the title to Easy Email Validation to prevent people from assuming the kata to be a proper email validation.
I've written a Racket translation.
Ruby 3.0 should be enabled.
No sample tests in JS
assert.deepEqualshould be usedNode 18. (
mocha + chaishould be enabled)Several fixed tests are executed after random tests, which is very erroneous since the point of fixed test is to help users in debugging and identifying edge cases, if any.
Assertion messages are extremely unhelpful
Input format should be given ...
Loading more items...