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
Input range needs to be specified. (Because apparently the input only goes up to
500
, which makes this kata extremely easy)Instructions mention it should return "Invalid date" but the tests are testing for "Invalid date!" (in those cases)
The approximation formula could use extra parentheses, to reduce ambiguity.
Currently, it says "π * (3/2(a+b) - sqrt(ab))"
Perhaps it should say "π * ((3/2)(a+b) - sqrt(ab))"
Just to be clear that it isn't 3/(2(a+b))
Python, possibly other languages: tests miss sanity checks on values returned by user solution and crash badly when an unexpected value (not a pattern, or not a valid pattern) is returned.
This comment is hidden because it contains spoiler information about the solution
JS: No random test
As pointed out below, there're no tests with repeated keys.
Ruby 3.0 should be enabled.
Duplicate of all the prime testing katas.
There are no mentions anywhere that input validation is required.
Hello, there are a couple hacks that only check for presence of the three expected groups and leading/trailing commas, but don't check for redundancy.
Adding a few tests like
name:Tomek,age:30,skill:PHP,name:Kemot
would change that.A very good kata nonetheless and Gosh, the absence of conditionals in JS RegExps makes it so fastidious!
Tests are still quite weak and doesn't test the requirement strictly.
Also, where are the random tests?
Nicely done. A couple of minor ideas for improvement:
Need some special test cases, like
<>
,<<<<<<<<<<>
,<t<<e>s>t>i>ng>>>
, etc.Probably also clarify in the description if empty brackets (
<>
) should be removed or not.Loading more items...