Skip to content

Commit b358f7f

Browse files
committed
revert tests for eltype
1 parent f67aaab commit b358f7f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

+4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)