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?
hi,
it's the page index, not the page number that you're supposed to return.
Plz, read the specifications more carefully:
not an issue, closing.
cheers
Bug in Python 3 tests:
collections = range(1, 25)
items per page = 10
So, item with index '23' must be on 3rd page, not 2nd
It's better to use "not list" statement to check empty list.
Welp, I feel like an idiot.
Hey, I would to see your mathematical solution for this.
Lol