Commit 9966783
fix: remove orphaned outputs reference, clean up test suite (#206)
Bug: `gen_len = outputs[0].shape[0] - ...` was outside the if/else
block — `outputs` only exists in the unconstrained path, crashing
the constrained path with UnboundLocalError.
Test cleanup: removed source-code-grepping tests (brittle, test
implementation not behavior). Kept 31 tests that verify behavior:
- Regex matching (valid/invalid inputs)
- DFA quantifier limits
- Outlines API contract (imports, dispatch types, image wrapper)
- Generator cache sentinel logic
- Task rotation (loading, explicit IDs, rotation coverage)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 00c0c33 commit 9966783
2 files changed
Lines changed: 94 additions & 232 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
| |||
0 commit comments