Open
Description
It would be nice to have a more informative failure message for a @test x ≈ y
that:
- If one of the operands
iszero
, and the caller didn't pass a explicitatol
, warn them that they might want to specify anatol
(or rewrite e.g.x - y ≈ 0
tox ≈ y
), and direct them to theisapprox
docs. - If it failed a relative tolerance (
rtol
) check, print out the computed relative errornorm(x - y) / max(norm(x), norm(y))
. See also report error magnitude on @test x ≈ y failure #55613
(I feel like this has been raised before, but I can't find an issue?)
Activity