Prompt
You are given a small Python package with `paginate(items, page, page_size)` that drops the last item on full pages. Locate the bug, write a fix, and ensure unit tests pass. Do not change public function signatures.
Success criteria
- All provided unit tests pass
- No public API signature changes
- Diff limited to relevant files
Scoring hints
- Prefer running pytest; grade via test exit code
- Penalize drive-by refactors
Budget 600s
Tools required · web no · code yes
Tags python, unit-test, pagination
Primary type Coding agent. Gold is not in this payload. API