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.
python too.
Needs random tests.
Kata is stuck in Node 8.
Sorry to ask, but what is the reason for the 2+ in 'test.assert_equals(2+goto(2,'2'),2);'.
Could someone please explain it?
Tricky one
What's the reason behind differentiating the data type of each argument?
nasty kata!
This comment is hidden because it contains spoiler information about the solution
thanks for
The log appears above the test result
If it says instead got: 1, your function returned 1. The log appears above the test result, so maybe you're confusing the input of one tests with the result of another:
The tests are ok.
What's wrong with a test with input
1.5 '3'
(JS)?Ah, I see, the description is quite confusing to be honest. I understood the output to be the floor moved to, but it is actually the difference and direction traversed between levels.
If you travel down, you subtract
button
fromlevel
. So a test ofgoto(1, "0") == -1
.Why does one test say "0 should be -1" ?? I thought the levels begin on level 0?
Read the instructions again (I've modified them).
Loading more items...