-
-
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
get rid of test_approx_eq_* #4615
Comments
The point of this is it knows more about what is being tested, so it can print the compared values and their difference compared to the requested tolerance, instead of just a boolean result. |
Well, we need a better general way of printing more information when tests fail. As it is, these fail incorrectly: they throw an error instead of failing. |
Ah, well failing incorrectly is certainly a problem. |
Can't tell if serious... |
I was actually serious, but you have a point. |
I have aggressively changed |
Well, I'm working on improving the |
I support getting rid of I also agree that |
Given #12472, you can now do It would be fairly easy to update the |
@StefanKarpinski didn't your great Regex-fest (mostly) do this? |
They're not used much in base any more, but they should be deprecated to really close this if we want to finish getting rid of them all the way. |
Related: #15477 |
I really did want to kill these during the at-testset change, but failed to find a solution I liked at the time. |
Bump? |
A good solution would be to recognize |
Addresses - [JuliaLang/julia#15477]: Gives us better control for defining tolerance levels - [JuliaLang/julia#4615]: Fixes test cases not being represented in the testcase summary
Instead, define Test.test_approx_eq_modphase in the two files where it is needed. This is a *very* specific function and certainly not one that needs to live in Julia's standard library code. Closes #4615.
This is done |
These are not really fundamental testing primitives and should be replaced with
@test isapprox(...)
or something similar.The text was updated successfully, but these errors were encountered: