Skip to content
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

==(DecoratedInterval,Interval) == false, hotfix for #219 #220

Closed
wants to merge 2 commits into from

Conversation

miguelraz
Copy link

Fixes #219.
Added tests so as to not regress coverage, guarantee desired case passes.

@@ -33,6 +33,9 @@ end

in(x::T, a::DecoratedInterval) where T<:Real = in(x, interval_part(a))

@inline Base.:(==)(xx::DecoratedInterval, yy::Interval) = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

== should already be imported, so you can just write ==. Inlining should be automatic for a simple function like this I guess.

@codecov-io
Copy link

Codecov Report

Merging #220 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
+ Coverage   97.11%   97.11%   +<.01%     
==========================================
  Files          22       22              
  Lines         970      972       +2     
==========================================
+ Hits          942      944       +2     
  Misses         28       28
Impacted Files Coverage Δ
src/decorations/functions.jl 97.5% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e197643...3fdc8ee. Read the comment docs.

@coveralls
Copy link

coveralls commented Sep 19, 2018

Coverage Status

Coverage increased (+0.006%) to 97.119% when pulling a38d710 on miguelraz:hotfix into e197643 on JuliaIntervals:master.

@dpsanders
Copy link
Member

I don't think we want to go in this direction. I would suggest throwing an ArgumentError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

∞🔁🐞 : ==(DecoratedInterval, Interval) gives an infinite loop.
4 participants