diff --git a/test/runtests.jl b/test/runtests.jl index 19a84f4..9013112 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -79,5 +79,8 @@ using Base.Test @test width(ClosedInterval(B, A)) == Base.Dates.Day(0) @test isempty(ClosedInterval(B, A)) end + + @test width(ClosedInterval(3,7)) ≡ 4 + @test width(ClosedInterval(4.0,8.0)) ≡ 4.0 end end