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.
Perhaps the kata could be made more interesting by requiring the class to be an
enum
, with membersGAS
,LIQUID
,SOLID
and a method (or an immutable final Map) that returns the correct transition name. There are relatively few kata that involve enums on Codewars.Random tests are making double the amount of calls.
More worryingly, this happens because random tests are calling the user function twice and asserting the two results are equal, which means random tests are not working at all.
import java.util.Date
is missing in the initial code.When the date is Mon Dec 06 01:11:00 GMT 1999 and the timetable is
Why are the tests expecting True? Doesn't this timetable mean that the inn is open all Sunday (00:00 to 00:00) and then from Monday at 08:00 til Tuesday at 08:00?
Still lacks novelty.
This is a simple linear scan (unless you're hiding something) - why are you testing 1.5kk inputs?
Hi @lecso2,
Welcome to the club of Kata authors! :D While you may be inclined to author a Kata whenever an idea pops up in your mind and publish it for the rest of the community to enjoy, you should be aware that published Kata are expected to meet strict expectations in order to pass the testing stage and leave Beta.
Please do read through the article linked above before continuing on your journey of authoring Kata. We're looking forward to more Kata authored by you once you have read the article mentioned ;)
Cheers,
@donaldsebleung