Skip to content

Commit 272975f

Browse files
committed
Update test_calculus.jl
1 parent 97dd159 commit 272975f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_calculus.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,10 @@ using QuasiArrays, IntervalSets, Test
7171
@test diff(ones(Base.OneTo(3), Inclusion(0.0..1))) zeros(Base.OneTo(2), Inclusion(0.0..1))
7272
@test diff(ones(Base.OneTo(3), Inclusion(0.0..1)); dims=2) zeros(Base.OneTo(3), Inclusion(0.0..1))
7373
end
74+
75+
@testset "Incomplete" begin
76+
struct IncompleteQuasiArray <: AbstractQuasiVector{Int} end
77+
Base.axes(::IncompleteQuasiArray) = (Base.OneTo(3),)
78+
@test_throws ErrorException diff(IncompleteQuasiArray())
79+
end
7480
end

0 commit comments

Comments
 (0)