-
Notifications
You must be signed in to change notification settings - Fork 71
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
Revert dotdot #97
Revert dotdot #97
Conversation
b1aad84
to
470e440
Compare
Codecov Report
@@ Coverage Diff @@
## master #97 +/- ##
==========================================
- Coverage 91.95% 91.93% -0.02%
==========================================
Files 21 21
Lines 969 967 -2
==========================================
- Hits 891 889 -2
Misses 78 78
Continue to review full report at Codecov.
|
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.
LGTM. Let's wait for travis....
src/intervals/intervals.jl
Outdated
@@ -122,13 +122,13 @@ include("hyperbolic.jl") | |||
|
|||
# Syntax for intervals | |||
|
|||
# a..b = Interval(convert(Interval, a).lo, convert(Interval, b).hi) | |||
a..b = Interval(convert(Interval, a).lo, convert(Interval, b).hi) |
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.
Perhaps, we need interval
here.
Some tests need revision... |
Three tests are failing, related to the mid-point radius notation (using @test parse(Interval{Float64}, "3 ± 4") == Interval(-1, 7)
@test parse(Interval{Float64}, "0.2 ± 0.1") == @interval(0.1,0.3) which is intuitively what they should do. The last one is trickier and I think some changes in the code itself are needed, perhaps here. In my opinion, @test parse(Interval{BigFloat}, "0.2 ± 0.1") == @biginterval(0.1,0.3) Yet, this test also fails, because |
I think the latest changes fix this. |
Some tests still fail. The failure, as far as I have checked locally, is only related to the display of intervals (i.e., |
Locally, everything seems to work fine! I propose to wait for travis, merge and tag a new version! The question is if it should be a patch or a minor version? |
Since we changed the meaning of |
Excellent! |
The string parsing code in general needs an overhaul. E.g. they require being able to parse I have a candidate in mind to do all of this work... |
I agree with you. But, let's leave it for another PR! The first require to make JuliaIntervals/IntervalRootFinding.jl#24 work is tag a new release here! |
Tests are passing on Travis! Though the doc generation seems to be broken... :/ |
Thanks a lot! |
..
back to give tight intervals.convert(Interval, s::String)