Try to narrow it down to a specific test case. Find out what your code is returning in that case. That'll probably tell you what the problem is.
The only asserts in the JS version of this kata are standard ones (Test.expect()).
Test.expect()
Which language?
i still dont find the trick
Thanks!
Glad you like it;
Thanks! Good work. :)
Tbh, I'm not entirely sure what you are doing or what you are trying to do in your current solution.
If it helps, your code currently fails for: [[1],[2,3],[6,3,4]], solution: 9 [[1],[1,2],[3,1,1]], solution: 5
[[1],[2,3],[6,3,4]], solution: 9
[[1],[1,2],[3,1,1]], solution: 5
You might want to read the description again.
This comment is hidden because it contains spoiler information about the solution
You have no test failed because your code crashes on performance tests, and tests abort as soon as it happens. Read the log to the end:
STDERR FATAL ERROR: invalid array length Allocation failed - JavaScript heap out of memory Aborted (core dumped)
Loading collection data...
Try to narrow it down to a specific test case. Find out what your code is returning in that case. That'll probably tell you what the problem is.
The only asserts in the JS version of this kata are standard ones (
Test.expect()
).Which language?
i still dont find the trick
Thanks!
Glad you like it;
Thanks! Good work. :)
Tbh, I'm not entirely sure what you are doing or what you are trying to do in your current solution.
If it helps, your code currently fails for:
[[1],[2,3],[6,3,4]], solution: 9
[[1],[1,2],[3,1,1]], solution: 5
You might want to read the description again.
This comment is hidden because it contains spoiler information about the solution
You have no test failed because your code crashes on performance tests, and tests abort as soon as it happens. Read the log to the end:
This comment is hidden because it contains spoiler information about the solution