-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add isatomic function and tests #58
Conversation
Codecov Report
@@ Coverage Diff @@
## master #58 +/- ##
==========================================
+ Coverage 91.61% 91.62% +<.01%
==========================================
Files 21 21
Lines 966 967 +1
==========================================
+ Hits 885 886 +1
Misses 81 81
Continue to review full report at Codecov.
|
3 similar comments
2 similar comments
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.
Thanks a lot!
I have one minor correction (docstrings) and a
a simple suggestion. Merge at will!
src/intervals/special.jl
Outdated
""" | ||
isatomic(x::Interval) | ||
|
||
Check is an interval `x` is an *atomic* interval, i.e. is unable to be split. |
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.
A correction and an addition: "Check if ... to be split in finite precision.`
test/interval_tests/consistency.jl
Outdated
@test isatomic(Interval(1)) | ||
@test isatomic(Interval(2.3, 2.3)) | ||
@test isatomic(emptyinterval()) | ||
@test isatomic(Interval(realmax(), ∞)) |
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.
This can be written as: @test isatomic(@interval(Inf))
.
Fixed, thanks! |
Closes #46