-
-
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
Change ≅ to ≣ in numbers.jl tests #18599
Conversation
We should probably use something like |
2f579db
to
e66a315
Compare
|
LGTM. |
Travis failure due to timeout on OSX (log saved in gist: https://gist.github.com/stevengj/3be00775bf429cfbe1af1147b3781eb5) … restarted Travis. |
@@ -1,5 +1,7 @@ | |||
# This file is a part of Julia. License is MIT: http://julialang.org/license | |||
|
|||
≣(a, b) = isequal(a, b) # convenient for comparing NaNs |
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.
As a general style note, when we define operators to be equivalent to functions, we generally use const ≣ = isequal
. This has some advantages: docstrings for ≣
work, typing ≣
at the REPL prints isequal
so it is self-documenting to some extent, and compilation time is decreased. Not that these considerations matter much in a test file, however.
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.
Noted. The reason I defined as a function was to avoid something like #18598 again (in the case someone defines ≣
as another function in another test).
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.
Okay.
e66a315
to
16a364d
Compare
Fixes #18598