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
Structs don't convert to expectations automatically for two reasons:
Unlike collections which may contain anything, structs often restrict the type of fields so expect-struct is required to make expectations that expect a field of a struct matches some expectation.
Only struct field positions are available at runtime, not accessor names. This makes it hard to produce good error messages when drilling down into struct fields.
The expect-struct combinator serves well enough for the first problem, but an expect-struct-equal? macro that combined a struct value with the accessors in a struct identifier could fix that.
The text was updated successfully, but these errors were encountered:
Structs don't convert to expectations automatically for two reasons:
expect-struct
is required to make expectations that expect a field of a struct matches some expectation.The
expect-struct
combinator serves well enough for the first problem, but anexpect-struct-equal?
macro that combined a struct value with the accessors in a struct identifier could fix that.The text was updated successfully, but these errors were encountered: