diff --git a/test/comparisons.jl b/test/comparisons.jl index 1c55ceb6..a2f1b93d 100644 --- a/test/comparisons.jl +++ b/test/comparisons.jl @@ -34,14 +34,14 @@ end [ Interval{Closed, Closed}(1, 2), Interval{Closed, Closed}(-Inf, 2), - Interval{Unbounded,Closed}(nothing, 2), Interval{Closed, Closed}(-∞, 2), + Interval{Unbounded,Closed}(nothing, 2), ], [ Interval{Closed, Closed}(4, 5), Interval{Closed, Closed}(4, Inf), - Interval{Closed,Unbounded}(4, nothing), Interval{Closed, Closed}(4, ∞), + Interval{Closed,Unbounded}(4, nothing), ], ) @@ -89,14 +89,14 @@ end [ Interval{Open, Open}(1, 3), Interval{Open, Open}(-Inf, 3), - Interval{Unbounded,Open}(nothing, 3), Interval{Open, Open}(-∞, 3), + Interval{Unbounded,Open}(nothing, 3), ], [ Interval{Open, Open}(3, 5), Interval{Open, Open}(3, Inf), - Interval{Open,Unbounded}(3, nothing), Interval{Open, Open}(3, ∞), + Interval{Open,Unbounded}(3, nothing), ], ) @@ -144,14 +144,14 @@ end [ Interval{Open, Open}(1, 3), Interval{Open, Open}(-Inf, 3), - Interval{Unbounded,Open}(nothing, 3), Interval{Open, Open}(-∞, 3), + Interval{Unbounded,Open}(nothing, 3), ], [ Interval{Closed, Closed}(3, 5), Interval{Closed, Closed}(3, Inf), - Interval{Closed,Unbounded}(3, nothing), Interval{Closed, Closed}(3, ∞), + Interval{Closed,Unbounded}(3, nothing), ], ) @@ -199,14 +199,14 @@ end [ Interval{Closed, Closed}(1, 3), Interval{Closed, Closed}(-Inf, 3), - Interval{Unbounded,Closed}(nothing, 3), Interval{Closed, Closed}(-∞, 3), + Interval{Unbounded,Closed}(nothing, 3), ], [ Interval{Open, Open}(3, 5), Interval{Open, Open}(3, Inf), - Interval{Open,Unbounded}(3, nothing), Interval{Open, Open}(3, ∞), + Interval{Open,Unbounded}(3, nothing), ], ) @@ -254,14 +254,14 @@ end [ Interval{Closed, Closed}(1, 3), Interval{Closed, Closed}(-Inf, 3), - Interval{Unbounded,Closed}(nothing, 3), Interval{Closed, Closed}(-∞, 3), + Interval{Unbounded,Closed}(nothing, 3), ], [ Interval{Closed, Closed}(3, 5), Interval{Closed, Closed}(3, Inf), - Interval{Closed,Unbounded}(3, nothing), Interval{Closed, Closed}(3, ∞), + Interval{Closed,Unbounded}(3, nothing), ], ) @@ -309,14 +309,14 @@ end [ Interval{Closed, Closed}(1, 4), Interval{Closed, Closed}(-Inf, 4), - Interval{Unbounded,Closed}(nothing, 4), Interval{Closed, Closed}(-∞, 4), + Interval{Unbounded,Closed}(nothing, 4), ], [ Interval{Closed, Closed}(2, 5), Interval{Closed, Closed}(2, Inf), - Interval{Closed,Unbounded}(2, nothing), Interval{Closed, Closed}(2, ∞), + Interval{Closed,Unbounded}(2, nothing), ], ) @@ -360,7 +360,7 @@ end Interval{Open, Open}(l, u), Interval{Open, Open}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -403,7 +403,7 @@ end Interval{Closed, Open}(l, u), Interval{Open, Open}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -446,7 +446,7 @@ end Interval{Open, Closed}(l, u), Interval{Open, Open}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -489,7 +489,7 @@ end Interval{Closed, Closed}(l, u), Interval{Open, Open}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -532,7 +532,7 @@ end Interval{Closed, Open}(l, u), Interval{Closed, Closed}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -575,7 +575,7 @@ end Interval{Open, Closed}(l, u), Interval{Closed, Closed}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -618,7 +618,7 @@ end Interval{Closed, Closed}(l, u), Interval{Closed, Closed}(l, u), ] - for (l, u) in product((1, -Inf), (5, Inf)) + for (l, u) in product((1, -Inf, -∞), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -661,7 +661,7 @@ end Interval{Closed,Unbounded}(l, u), Interval{Open,Unbounded}(l, u), ] - for (l, u) in product((1, -Inf), (nothing,)) + for (l, u) in product((1, -Inf, -∞), (nothing,)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -704,7 +704,7 @@ end Interval{Unbounded,Closed}(l, u), Interval{Unbounded,Open}(l, u), ] - for (l, u) in product((nothing,), (5, Inf)) + for (l, u) in product((nothing,), (5, Inf, ∞)) ) @testset "$a vs. $b" for (a, b) in test_intervals @@ -834,12 +834,14 @@ end Interval{Closed, Closed}(-Inf, 5), Interval{Closed, Closed}(-∞, 5), Interval{Closed, Closed}(-Inf, Inf), + Interval{Closed, Closed}(-∞, ∞), Interval{Closed, Unbounded}(1, nothing), Interval{Closed, Unbounded}(-Inf, nothing), + Interval{Closed, Unbounded}(-∞, nothing), Interval{Unbounded, Closed}(nothing, 5), Interval{Unbounded, Closed}(nothing, Inf), + Interval{Unbounded, Closed}(nothing, ∞), Interval{Unbounded, Unbounded}(nothing, nothing), - Interval{Closed, Closed}(-∞, ∞), ], )