-
Notifications
You must be signed in to change notification settings - Fork 517
Closed
Description
assert_eq uses ocaml's <> which returns false for -0 <> 0 and true for NaN <> x ∀x. This is the usual behavior, but for our floating point unit tests we have unusual needs: we do actually need to distinguish between -0 and 0, test for specific NaNs sometimes, and test for any NaN sometimes. What do people think of adding the following?
assert_eq_bits- likeassert_eq, but reinterpret-casts both operands as same-size integers firstassert_nan- has one operand and asserts that it is a NaN (of any kind)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels