Loading...
Loading...
Compare original and translation side by side
Repeat: Red → Green → Refactor
1. Red: Write a failing test
2. Green: Write minimal code to pass the test
3. Refactor: Clean up code (tests still pass)Repeat: Red → Green → Refactor
1. Red: Write a failing test
2. Green: Write minimal code to pass the test
3. Refactor: Clean up code (tests still pass)- [ ] Happy path: Basic functionality
- [ ] Happy path: Boundary values
- [ ] Error case: Invalid input
- [ ] Error case: Error handling- [ ] 正常路径:基础功能
- [ ] 正常路径:边界值
- [ ] 错误场景:无效输入
- [ ] 错误场景:错误处理undefinedundefined
Run test and **confirm failure**:
```bash
uv run pytest tests/test_{module}.py -v
运行测试并**确认运行失败**:
```bash
uv run pytest tests/test_{module}.py -vuv run pytest tests/test_{module}.py -vuv run pytest tests/test_{module}.py -vuv run pytest tests/test_{module}.py -v # Confirm still passesuv run pytest tests/test_{module}.py -v # Confirm still passesundefinedundefinedundefinedundefinedundefinedundefinedsrc/{module}.pytests/test_{module}.pyundefinedsrc/{module}.pytests/test_{module}.pyundefined