We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cecb913 commit 72b211eCopy full SHA for 72b211e
test/interval_tests/construction.jl
@@ -9,6 +9,9 @@
9
@test sup(IntervalArithmetic._unsafe_bareinterval(Float64, Inf, Inf)) == Inf
10
@test isempty_interval(bareinterval(Inf, Inf))
11
@test isnai(interval(Inf, Inf))
12
+ @test isnai(interval(1//0, 1//0))
13
+ @test isnai(interval(-1//0, -1//0))
14
+ @test isnai(interval(1//0, -1//0))
15
end
16
17
@testset "Basics" begin
@@ -70,6 +73,9 @@ end
70
73
@test isnai(interval(1, NaN))
71
74
@test isnai(interval(NaN))
72
75
76
+ @test isnai(interval(1//0))
77
+ @test isnai(interval(-1//0))
78
+
79
# check no issue with `Integer` modular arithmetic
80
@test bounds(interval(typemin(Int64), typemax(Int64))) == (float(typemin(Int64)), float(typemax(Int64)))
81
0 commit comments