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.
Loved this Kata, got me started with OOPS, lot to improve though
thankyou
Sorry for the misunderstanding, thanks for the explanation.
Not an issue. All the tests are correct.
10
,4
, and-1
are expected values frompage_item_count
calls, notpage_count
...Python testing seems off.
Testing .page_count() method, tests assert that it should return 3, 10, 4, then -1 respectively but I'm failing all but the first. I put in a print statement and it seems that all test cases are with collections = range(1, 25) and items_per_page = 10. I'm getting 3 for all of those which should be correct.
Also, .page_item_count() method seems to not be tested despite being in the template?