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.
Potential duplicate of Mod4 Regex
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.
Python, possibly other languages: tests miss sanity checks on values provided by user solution and crash badly when an unexpected value (not a pattern, or not a valid pattern) is returned.
Related: https://www.codewars.com/kata/5ab23a9c1cec39668c000055/discuss#62c2112ef8f15c004b4c4f1e
For solving in python, I'm not sure where am I making mistake when outputting return. I get:" raise TypeError("first argument must be string or compiled pattern")" error?
The limit of 50 characters is way too restrictive if the purpose is just to prevent hardcoding. Either lower it down or change the description to "to make it more challenging"
The code limit is too high. If someone would try to harcode it, it would take thousands of characters. I barely hit the limit even though I didn't hardcode the date.
Since this kata also tests for dates before the introduction of the Gregorian calendar in 1582 the description should state this somewhere or at least mention the use of the proleptic Gregorian calendar.
The tests should be much more rigorous, probably checking every date from
01.01.0001
till some point in 21 century. For example, using the snippet provided below, this solution fails 36k times, this one fails 276k times etc.The anticheat is not good enough.
Ruby 3.0 should be enabled, read this to learn how to do it
Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)
This comment is hidden because it contains spoiler information about the solution