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 kata doesn't satisfy basic kata requirements: spec is still unclear, test code is riddled with basic technical errors, only 7 fixed tests, and no random tests.
Kata author really should have a look at the kata authoring guideline.
Expected and actual values are flipped in the test assertion messages:
chai.config.truncateThreshold = 0;
is also missing in test code, which truncates inputs in assertion messages:Please describe elevator behavior more eplicitly. For example:
This way you don't have to resort to the test cases to find this out.
In the first example result:
Why is the
Pressed button DOWN on 2 floor (then to -1)
written after 2 steps? Is it because it reads the null as a move and one move = 2 steps / 1 floor?should add character limit (2000 should be fine) to guard against hardcoding.
Is there an actual need for the
steps
parameter? The result always terminates either way.For n <= 0 return empty string.
But solutions that only check forn == 0
can pass easily in JS && Ruby at least