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 c73ad52
Browse filesBrowse the repository at this point in the historyBrowse files
Tests of the gaps of the sets report (package B4):
- `FrozenSetOps` fills the new `OfReadOnlySpan` and `OfSpan` fields of `SetCreationOps` and
`SetCustomComparerOps`, so the shared creation contract runs `ofReadOnlySpan` and
`ofSpan` of the module and of the struct on a copy of each input that it changes after
the call.
- `FrozenSetTests` lists the new functions in the tables of the creation functions and of
the members of the struct, which check the comparer and the element that stays of
"apple" and "APPLE". The shared contract states only that one element of each class
stays, so two tests pin which one: the span members of the struct keep the first
element in both orders, and the span functions of the module keep the first of two equal
string instances, in both orders.
- A third test pins the rule that the remarks of `CustomComparerFrozenSet.ofSeq` state: it
returns a frozen set whose comparer equals its comparer, not only the same instance
(ADR 0001, D14).
Each new behavior was broken once in the code, 10 mutations (the comparer and the element
that stays of the four span creators, a dropped element, and the instance test of `ofSeq`),
and a test failed each time.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0 commit comments