Skip to content

Commit

Permalink
Fix StepRangeLen test (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Oct 20, 2022
1 parent c16d290 commit 2999a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/anchoredinterval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -579,14 +579,14 @@ using Intervals: Bounded, Ending, Beginning, canonicalize, isunbounded
end

@testset "StepRangeLen" begin
r = AnchoredInterval{-1}(1):1:AnchoredInterval{-1}(5)
r = r[1:5]
r = StepRangeLen(AnchoredInterval{-1}(1), 1, 5)

# https://github.com/JuliaLang/julia/issues/33882
@test r isa StepRangeLen
@test first(r) == AnchoredInterval{-1}(1)
@test step(r) == 1
@test last(r) == AnchoredInterval{-1}(5)
@test r == AnchoredInterval{-1}(1):1:AnchoredInterval{-1}(5)
end

@testset "hourly, implicit" begin
Expand Down

0 comments on commit 2999a5d

Please sign in to comment.