Files
leleka/scripts/e2e/codex/tasks/smoke-mini/task.md
T

21 lines
1.0 KiB
Markdown

---
id: smoke-mini
title: Fix two bugs in the textkit package
kind: bugfix
expected_rounds: 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
<!-- PROMPT BEGIN -->
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.
<!-- PROMPT END -->