Ah yes, that was my mistake. Fixed it and it works now, thanks.
Your code does not check for invalid sides correctly.
What does your solution return for volume = -8, side = -2? (Hint: it is not false).
volume = -8, side = -2
false
For some reason my kata passes all basic tests (typescript), but fails random test. Confused with what is wrong, as I followed the description and everything otherwise works.
Loading collection data...
Ah yes, that was my mistake. Fixed it and it works now, thanks.
Your code does not check for invalid sides correctly.
What does your solution return for
volume = -8, side = -2
? (Hint: it is notfalse
).For some reason my kata passes all basic tests (typescript), but fails random test. Confused with what is wrong, as I followed the description and everything otherwise works.