-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace @test_approx_eq_eps
with another idiom
#19899
Comments
|
One idea: change the @test a ≈ b atol=ɛ |
@test maximum(abs, a - b) < ɛ Perhaps that's better since it's far more explicit about what the test is actually checking. |
Or maybe |
|
We also deprecated |
|
Note that tolerance of the first Anscombe's quartet test in test/linalg/generic.jl had to be loosened from 10e-5 to 15e-5 because ≈ uses the norm of the difference instead of the maximum absolute difference, which is a stricter test. Closes #19899.
Would |
Yes, I was just proposing a slightly nicer syntax for that kind of thing. Not sure if it's worth it. |
Part of #4615. Now that
@test_approx_eq
has been deprecated and removed from our test suite, the next step is to replace all uses of@test_approx_eq_eps
from the test suite and deprecate that macro in a similar fashion. Possible replacement for@test_approx_eq_eps a b ɛ
:I kind of wish there was a nicer way to write that, but I'm not sure that there is.
The text was updated successfully, but these errors were encountered: