Skip to content

Commit

Permalink
Update test_calculus.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Jan 26, 2025
1 parent 97dd159 commit 272975f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,10 @@ using QuasiArrays, IntervalSets, Test
@test diff(ones(Base.OneTo(3), Inclusion(0.0..1))) zeros(Base.OneTo(2), Inclusion(0.0..1))
@test diff(ones(Base.OneTo(3), Inclusion(0.0..1)); dims=2) zeros(Base.OneTo(3), Inclusion(0.0..1))
end

@testset "Incomplete" begin
struct IncompleteQuasiArray <: AbstractQuasiVector{Int} end
Base.axes(::IncompleteQuasiArray) = (Base.OneTo(3),)
@test_throws ErrorException diff(IncompleteQuasiArray())
end
end

0 comments on commit 272975f

Please sign in to comment.