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.
Yup you are right, tests in JS and a couple of other languages (not all) pass -1 in some fixed tests (but not in random tests), and handling of negative numbers is not mentioned anywhere.
It depends on how kata is authored. It's up to the kata author what they put in assertion messages and logs, that's why you can see inputs in some tests, and not in others.
As much as I see, JS version does not pass negative numbers as input, and my solution does not handle negative inputs either. However, the input can be 0. Your solution could fail on 0, or had some other error.I am blind or something :|You could: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-can-i-see-which-input-causes-my-solution-to-fail
In what language?