File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ struct IncompleteInterval <: AbstractInterval{Int} end
5656
5757 @test boundstype (I) == Int
5858 @test boundstype (M) == Float64
59+ @test eltype (I) == Int
60+ @test eltype (M) == Float64
5961
6062 @test ! isempty (I)
6163 @test isempty (J)
@@ -643,6 +645,7 @@ struct IncompleteInterval <: AbstractInterval{Int} end
643645 @testset " Custom intervals" begin
644646 I = MyUnitInterval (true ,true )
645647 @test boundstype (I) == boundstype (typeof (I)) == Int
648+ @test eltype (I) == eltype (typeof (I)) == Int
646649 @test leftendpoint (I) == 0
647650 @test rightendpoint (I) == 1
648651 @test isleftclosed (I)
@@ -823,6 +826,7 @@ struct IncompleteInterval <: AbstractInterval{Int} end
823826 @testset " IncompleteInterval" begin
824827 I = IncompleteInterval ()
825828 @test boundstype (I) === Int
829+ @test eltype (I) === Int
826830 @test_throws ErrorException endpoints (I)
827831 @test_throws ErrorException closedendpoints (I)
828832 @test_throws MethodError 2 in I
You can’t perform that action at this time.
0 commit comments