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.
This comment is hidden because it contains spoiler information about the solution
Something weird is happening with the javascript random tests - all 40 are failed with the same error:
"It should work on random inputs too! - Expected: '[24, 31, 20, 14, 31, 14, 14, 31, 48, 2, 24, 41, 31, 48, 31, 14, 14, 14, 13, 2, 33, 20, 31, 24, 20, 24, 33, 2, 48, 33, 33, 33, 2, 13, 48, 13]', instead got: '[24, 31, 20, 14, 31, 14, 14, 31, 48, 2, 24, 41, 31, 48, 31, 14, 14, 14, 13, 2, 33, 20, 31, 24, 20, 24, 33, 2, 48, 33, 33, 33, 2, 13, 48, 13, undefined]'".
Used console.log to check the tests input and run the same input in console - everything works, no 'undefined' at the end. Can anyone please tell what's wrong?