Skip to content

Commit

Permalink
Increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Sep 2, 2021
1 parent 5bf7c04 commit 739dbb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/infrange.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ end
InfStepRange(start::T, step::S) where {T,S} = InfStepRange{T,S}(start,step)
InfStepRange{T,S}(start, step) where {T,S} = InfStepRange{T,S}(convert(T,start),convert(S,step))

==(a::InfStepRange, b::StepRangeLen) = isinf(length(b)) && first(a) == first(b) && step(a) == step(b)
==(b::StepRangeLen, a::InfStepRange) = a == b

abstract type AbstractInfUnitRange{T<:Real} <: AbstractUnitRange{T} end

done(r::AbstractInfUnitRange{T}, i) where {T} = false
Expand Down
2 changes: 2 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,8 @@ end

@test [[1; zeros(∞)] D[:,1:5]][1:10,:] == [[1; zeros(9)] D[1:10,1:5]]
@test [[1; zeros(∞)] BandedMatrix(D[:,1:5])][1:10,:] == [[1; zeros(9)] D[1:10,1:5]]

@test cat([1,2,3],zeros(∞); dims=1) == cat(1:3,zeros(∞); dims=1) == [[1,2,3]; zeros(∞)]
end

@testset "sparse print" begin
Expand Down

0 comments on commit 739dbb5

Please sign in to comment.