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
{{ message }}
Repository navigation
Commit f8d0f98
Browse filesBrowse the repository at this point in the historyBrowse files
fixup! test: SortedSet against the set contracts and the order of Set
One data-row test for each group of functions that take a sequence, with a row for every input
that they reject: `null`, a default flat list given as a sequence, and a default flat list of
strings given as a sequence of objects, which `checkNotNullOrDefaultSeq` recognizes through
reflection.
- `SortedSetTests`: the functions of the module and the member `ofSeq` of the struct, 15 rows.
- `SortedSetComputationExpressionTests`: `yield!` for a sequence, an array and a sorted set, and
`for`, 8 rows. `obj` has no F# comparison, which the expression requires, so its rows give
the flat list of strings as a sequence of `IComparable`.
Each row asserts the exception, its type and the name of the parameter through
`FlatListAssert.RejectsNull`, and the rows of the module reuse
`FlatListOracles.defaultStringsAsObjects` of the foundation. Two tests check that a flat list
that is not default passes as a sequence of objects and as a sequence of comparables.
Reverting each of the 9 fixes once failed a test (1 to 3 tests each). The `yield!` for a
sequence and the `for` of the expression were also reverted to the check for `null` alone, and
2 tests failed each time. Switching off the covariant case of `checkNotNullOrDefaultSeq` in
`Helper.fs` failed 5 tests. Every file was restored.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0 commit comments