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
Initial code function name is incorrect:
celebration
->celebrations
This comment is hidden because it contains spoiler information about the solution
Since this is JS and not Java, there's no point in using
getParents
andgetChildren
getters. In fact you can accessparents
andchildren
properties just fine.Also, is it guaranteed that there will be no cycles? If yes it should be noted in the descriptions.
Needs random tests.
Also it's not recommended to use
Test.expect
because expected and actual values are not shown. UseTest.assertEquals
.There is no mention that there could be different person with the same name, except in actual tests.
This has implications on equality testing, so it should be mentioned.
Node v0.10
is deprecated. You need to republish your kata and enable the new language versions.(You can't add/remove JS version without a re-validation, so just a whitespace somewhere in the text fixture/author solution and re-publish.)
The instructions are hard to read. It's rather unclear what the
event
parameter is meant to mean (only in the last sentence is it implied). There is inconsistent terminology ("full" or "simple"? "funny" or "fuzzy"?). The last sentence reads "we want all jubilees for a full year", which is misleading no matter which way one interprets it--the solution is expected to contain jubilees multiple years out, and only one of them is allowed to be a full year. There's a sentence "If in doubt: for little children below 10 years, each birthday is both: full & funny", but I passed hundreds of random tests with a solution that disallows single-digit year durations.Need authoring help!
I selected JavaScript as language and Node v6.6.0 as variant (I'm using Set()).
It works fine for me in my draft kata, even if i try the kata without logging in.
But a friend of mine always gets errors (unknown "Set"), because for him the variant Node v0.10.33 is active and cannot be changed!
What's wrong? Did I miss to specify any setting?
Can someone please help me? Do you get test reports or errors when trying the kata without own modifications?
tnx in advance!