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

Refactor generic isfinite support #142

Merged
merged 1 commit into from
Sep 17, 2020
Merged

Refactor generic isfinite support #142

merged 1 commit into from
Sep 17, 2020

Conversation

omus
Copy link
Collaborator

@omus omus commented Sep 14, 2020

As isfinite(::Char) is something that isn't desired to be supported in Base I'll refactor the Intervals.jl code to make internal support for this more reasonable.

@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #142 into master will increase coverage by 2.55%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
+ Coverage   74.39%   76.95%   +2.55%     
==========================================
  Files          10       11       +1     
  Lines         457      512      +55     
==========================================
+ Hits          340      394      +54     
- Misses        117      118       +1     
Impacted Files Coverage Δ
src/Intervals.jl 80.00% <ø> (ø)
src/anchoredinterval.jl 96.66% <100.00%> (+0.56%) ⬆️
src/isfinite.jl 100.00% <100.00%> (ø)
src/compat.jl 100.00% <0.00%> (ø)

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 8aeb592...1a2172f. Read the comment docs.

@@ -24,6 +24,7 @@ Base.eltype(::AbstractInterval{T}) where {T} = T
Base.broadcastable(x::AbstractInterval) = Ref(x)
bounds_types(x::AbstractInterval{T,L,R}) where {T,L,R} = (L, R)

include("isfinite.jl")
Copy link
Member

Choose a reason for hiding this comment

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

Would this be worthwhile to maybe export?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I definitely don't want to export this as it'll cause conflicts with Base.isfinite

@omus omus merged commit a9d99c9 into master Sep 17, 2020
@omus omus deleted the cv/isfinite-refactor branch September 17, 2020 21:20
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.

2 participants