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.
"exhausted" means "the array has become empty, and then that empty array has been used for the next test case, although it was supposed to be the same as before the first test".
The reason why your solution didn't pass is because you modified the input array
dice
, so after the first test in the section it was exhausted.Thanks for noting that out, I changed the tests so they won't be modified after each function call, now your solution should pass.