Commit a6cb4e0
Add regression tests pinning the iterator-protocol contract
Review follow-ups on #235: pin that next(name) on the instance raises
TypeError (the documented behavior change — without this, re-adding a
__next__ would pass the existing tests while contradicting the release
log), and that iterating an all-empty name yields nothing now that
__iter__ and __len__ are independent code paths.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 75e5ed3 commit a6cb4e0
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
72 | 85 | | |
73 | 86 | | |
74 | 87 | | |
| |||
0 commit comments