Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1.0 KiB
id, title, kind, expected_rounds
| id | title | kind | expected_rounds |
|---|---|---|---|
| smoke-mini | Fix two bugs in the textkit package | bugfix | 6-14 |
Fix two bugs in the textkit package
Pipeline smoke test only; not part of the measured task set. Small package textkit/ (about 130 lines, 4 modules) with 2 seeded bugs
(wrap._chunks slices one character too few; words.truncate_words keeps limit - 1 words). 18 visible tests, 3 fail on the seed.
Acceptance (accept.py): the pristine tests/ files are byte-identical, the pristine tests pass, and hidden/test_hidden.py (15 extra cases) passes.
Prompt
This repository contains a small Python package, textkit/, with unit tests in tests/. Some of the tests currently fail. Please find the cause in the package code and fix it so that all tests pass. Do not edit anything under tests/; the tests describe the intended behaviour.
Run the tests with python3 -m unittest discover -s tests.
When you are done, reply with a short summary of what was wrong and what you changed.