File tree 1 file changed +4
-0
lines changed
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
56
56
57
57
@test boundstype (I) == Int
58
58
@test boundstype (M) == Float64
59
+ @test eltype (I) == Int
60
+ @test eltype (M) == Float64
59
61
60
62
@test ! isempty (I)
61
63
@test isempty (J)
@@ -643,6 +645,7 @@ struct IncompleteInterval <: AbstractInterval{Int} end
643
645
@testset " Custom intervals" begin
644
646
I = MyUnitInterval (true ,true )
645
647
@test boundstype (I) == boundstype (typeof (I)) == Int
648
+ @test eltype (I) == eltype (typeof (I)) == Int
646
649
@test leftendpoint (I) == 0
647
650
@test rightendpoint (I) == 1
648
651
@test isleftclosed (I)
@@ -823,6 +826,7 @@ struct IncompleteInterval <: AbstractInterval{Int} end
823
826
@testset " IncompleteInterval" begin
824
827
I = IncompleteInterval ()
825
828
@test boundstype (I) === Int
829
+ @test eltype (I) === Int
826
830
@test_throws ErrorException endpoints (I)
827
831
@test_throws ErrorException closedendpoints (I)
828
832
@test_throws MethodError 2 in I
You can’t perform that action at this time.
0 commit comments