Needs random tests.
Kata is stuck in Node 8.
What's the reason behind differentiating the data type of each argument?
This comment is hidden because it contains spoiler information about the solution
Invalid test cases:
//Test case 2 //Elevator on 1st, someone in it, no move Test.assertEquals(1+goto(1,'C3',true),1);
Should be:
//Test case 2 //Elevator on 1st, someone in it, no move Test.assertEquals(goto(1,'C3',false),0);
levels can be only numbers: 0,1,2,3 buttons can be strings: '0','1','2','3'
You should add this tests: goto('2','3') -> 0 goto(2,3) -> 0 goto('2',3) -> 0
And negative numbers tests, both for levels and buttons.
Thanks.
Loading collection data...
Needs random tests.
Kata is stuck in Node 8.
What's the reason behind differentiating the data type of each argument?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Invalid test cases:
Should be:
This comment is hidden because it contains spoiler information about the solution
You should add this tests:
goto('2','3') -> 0
goto(2,3) -> 0
goto('2',3) -> 0
And negative numbers tests, both for levels and buttons.
Thanks.