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.
The random tests keep failing, the code is working as it should, the test is just borked, example:
Testing .page_item_count() method for 1 elements, 2 elements per page, page number -2
[0]
{0: [10]}
-2
It should work for random tests too: -1 should equal 2
In this test, there is 1 element and 2 elements per page.
If there is only 1 element, 1 is the max value which could be returned in any case. But since page number -2 is out of range, per spec, we should be returning a -1.
Instead the test expects a value of 2... I don't see what I'm missing here.