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 is not a valid solution! It passes only by accident, because the tests are badly written.
Add this test and try again:
Test.expect(![3, -1, 0, 2].all(isGreaterThanZero), 'One is less than zero');
Hint, when you
return
in the middle of a loop, the loop stops, therefore only the first element is being checked.same problem here. You guys figure this out?