-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
internalAn internal refactor or improvementAn internal refactor or improvementtestingRelated to testing ty itselfRelated to testing ty itself
Description
We have a static_assert function in ty_extensions, which takes in a bool (or a value that can be coerced to a bool). astral-sh/ruff#21743 recently updated several tests to use a static_assert(actual == expected) pattern. If that fails, all that we can show is the value that was expected to be True. @sharkdp suggested an analogous static_assert_eq, which would perform the same test, but which would be able to print out a nicer diagnostic in case the test fails.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
internalAn internal refactor or improvementAn internal refactor or improvementtestingRelated to testing ty itselfRelated to testing ty itself