-
Notifications
You must be signed in to change notification settings - Fork 18
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
Implement interval rounding #147
Conversation
test/interval.jl
Outdated
@test_throws UndefKeywordError ceil(Interval(0.0, 1.0)) | ||
|
||
@test ceil(Interval(0.0, 1.0), on=LeftEndpoint) == Interval(0.0, 1.0) | ||
@test ceil(Interval(0.5, 1.0), on=LeftEndpoint) == Interval(1.0, 1.5) |
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.
I'm not sure on
is the right keyword as it makes me think only the left would be changed. I'll think about a better name
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.
Thinking about it more I think this is just my personal bias and on
is probably correct
Codecov Report
@@ Coverage Diff @@
## master #147 +/- ##
==========================================
+ Coverage 75.76% 76.55% +0.78%
==========================================
Files 11 11
Lines 491 516 +25
==========================================
+ Hits 372 395 +23
- Misses 119 121 +2
Continue to review full report at Codecov.
|
test/interval.jl
Outdated
@test_throws UndefKeywordError ceil(Interval(0.0, 1.0)) | ||
|
||
@test ceil(Interval(0.0, 1.0), on=LeftEndpoint) == Interval(0.0, 1.0) | ||
@test ceil(Interval(0.5, 1.0), on=LeftEndpoint) == Interval(1.0, 1.5) |
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.
Thinking about it more I think this is just my personal bias and on
is probably correct
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 looks good to me.
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
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, just had one question which might lead to a change.
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.
Looks good. I think there could be some further iteration on the implementation but I'm good to proceed
|
||
See also: [`LeftEndpoint`](@ref) | ||
""" | ||
const RightEndpoint{T,B} = Endpoint{T, Right, B} where {T,B <: Bound} |
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.
I wouldn't mind the docstrings being in a set PR
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.
3a36368
to
cfc2c13
Compare
Supersedes #65
Closes #146
Still needs documentation additions but should be ready for initial reviewNow has documentation