You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: add missing side-effect and Seq-equivalence tests for sum/average
The SideEffects module previously tested only sum, sumBy, and averageBy.
This adds the 3 missing variants:
- sumByAsync iterates exactly once
- average iterates exactly once
- averageByAsync iterates exactly once
Plus 2 tests verifying side-effect sequences yield next values on re-iteration:
- sum second iteration sees side-effect values
- averageBy second iteration sees side-effect values
Also adds 4 new Immutable Fact tests confirming results match Seq equivalents:
- TaskSeq.sum matches Seq.sum
- TaskSeq.average matches Seq.average
- TaskSeq.sumBy matches Seq.sumBy
- TaskSeq.averageBy matches Seq.averageBy
Total new tests: 44 (from 28 to 72 in the SumBy module, 191 passed total in this file
including Theory variants). Full suite: 4574 passed.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments