Skip to content

Commit

Permalink
revert 57
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Oct 21, 2021
1 parent e73b682 commit 8b3bc51
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ version = "0.5.4"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949"
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[compat]
EllipsisNotation = "0.4, 1.0"
julia = "0.7, 1"

[extras]
Expand Down
3 changes: 0 additions & 3 deletions src/IntervalSets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ import Statistics: mean

using Dates

using EllipsisNotation
import EllipsisNotation: Ellipsis

export AbstractInterval, Interval, OpenInterval, ClosedInterval,
, .., ±, ordered, width, duration, leftendpoint, rightendpoint, endpoints,
isopenset, isclosedset, isleftclosed, isrightclosed,
Expand Down
6 changes: 1 addition & 5 deletions src/interval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,8 @@ convert(::Type{TypedEndpointsInterval{L,R}}, d::Interval{L,R}) where {L,R} = d
iv = l..r
Construct a ClosedInterval `iv` spanning the region from `l` to `r`.
(The symbol `..` is the same as in the package EllipsisNotation.jl.)
"""
..

(::Ellipsis)(x, y) = ClosedInterval(x, y)
..(x, y) = ClosedInterval(x, y)


"""
Expand Down
6 changes: 1 addition & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ closedendpoints(I::MyUnitInterval) = (I.isleftclosed,I.isrightclosed)
struct IncompleteInterval <: AbstractInterval{Int} end

@testset "IntervalSets" begin
if VERSION >= v"1.1"
# Julia 1.0 defines getindex(a::GenericArray, i...) in Test,
# which could cause an ambiguity with getindex(A::AbstractArray, ::EllipsisNotation.Ellipsis)
@test isempty(detect_ambiguities(IntervalSets, Base, Core))
end
@test isempty(detect_ambiguities(IntervalSets, Base, Core))

@test ordered(2, 1) == (1, 2)
@test ordered(1, 2) == (1, 2)
Expand Down

0 comments on commit 8b3bc51

Please sign in to comment.