-
-
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
More tests for float functions and some small tests elsewhere #12318
Conversation
Gah! This passed locally. I will fix + update. e: there we go! |
@@ -90,7 +90,8 @@ end | |||
@test isapprox(.1+.1+.1, .3) | |||
@test !isapprox(.1+.1+.1, .4) | |||
|
|||
@test_throws UndefVarError test_approx_eq(ones(10),ones(11),1e-8,"a","b") | |||
@test_throws UndefVarError test_approx_eq(ones(10),zeros(10),1e-8,"a","b") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are these UndefVarError
s?
ah, I think this needs to be Test.test_approx_eq
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They are throwing a generic error("stuff")
. I thought the correct thing was UnderVarError
but maybe it should be ErrorException
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic error
throws an ErrorException
, this is throwing UndefVarError
because it isn't qualified as Test.test_approx_eq
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no!!! I'm sorry. I'll fix it. Thanks for catching this and reviewing my bad PRs :)
lgtm |
More tests for float functions and some small tests elsewhere
A bunch of
floatfuncs.jl
was not tested so I made a new file for it.reduce.jl
andtest.jl
had small throws/paths that weren't tested, added tests for those.Added tests for the environment variable functions in
rounding.jl
which weren't tested fully.