Commit a02c9f4
Restore retract_to(max_index()) test in retract.cpp with corrected assertion
Restore the deleted test lines that verify retract_to(max_index()) is a
no-op. The original code had a buggy assertion (comparing max_index()
against loop index i, which could diverge due to prior retractions) and
a missing throw keyword. Fix both: save max_index before the call and
verify it's unchanged after.
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>1 parent e10837a commit a02c9f4
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
54 | 60 | | |
55 | 61 | | |
56 | 62 | | |
| |||
0 commit comments