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
Rust description has a typo:
x + 30
instead ofx * 30
Missing fixed and sample tests in JS of empty array, which could invalidate this solution
Go translation
( JS )
Error message for failing
Magic.proto.register instanceof Function
assumes it does not exist. There are other reasons this test could fail.Same for
instance.name
.( JS )
Testing for prototype methods depends on them being enumerable. It also does not actually test
register
is the only one.( JS, possibly others )
Example tests would be nice.
needs random tests (JS at least)
Needs random tests.
No random tests.
Do you actually need the
register
method for this task anyway? It can be easily done inside theMagicModel
constructor.It is not obvious what is written in the tests output. Especially for beginners.
I barely understood that in first line is a "sunday" checking, in second - month and in third - date. Please, make more informative outputs.
#dstEnd with year 2004
Test Passed: Value == 0
Test Passed: Value == 10
Test Passed: Value == 7