@@ -6,30 +6,30 @@ if !isdefined(@__MODULE__, Symbol("@tN"))
66end
77
88for N in @tN ([Float64, Float32, Rational{Int}])
9- P = BallInf (zeros (N, 2 ), N (1 // 10 ))
10- d = N[1 // 10 , 1 // 10 ]
9+ B = Ball1 (zeros (N, 2 ), N (1 // 10 ))
10+ x = N[1 // 10 , 1 // 10 ]
1111 if N <: AbstractFloat
12- @test ! is_interior_point (d, P )
12+ @test ! is_interior_point (x, B )
1313 else
14- @test_throws ArgumentError is_interior_point (d, P )
15- @test ! is_interior_point (d, P ; ε= 1 // 100 )
14+ @test_throws ArgumentError is_interior_point (x, B )
15+ @test ! is_interior_point (x, B ; ε= N ( 1 // 100 ) )
1616 end
17- @test ! is_interior_point (d, P ; ε= N (1 ))
18- @test_throws ArgumentError is_interior_point (d, P ; ε= N (0 ))
17+ @test ! is_interior_point (x, B ; ε= N (1 ))
18+ @test_throws ArgumentError is_interior_point (x, B ; ε= N (0 ))
1919
20- d = N[1 // 10 , 1 // 10 ] .- LazySets. _rtol (N)
20+ x = N[1 // 10 , 1 // 10 ] .- LazySets. _rtol (N)
2121 if N <: AbstractFloat
22- @test is_interior_point (d, P )
22+ @test ! is_interior_point (x, B )
2323 else
24- @test ! is_interior_point (d, P ; ε= 1 // 100 )
24+ @test ! is_interior_point (x, B ; ε= N ( 1 // 100 ) )
2525 end
2626end
2727
2828for N in @tN ([Float64, Float32])
29- P = BallInf (zeros (N, 2 ), N (1 // 10 ))
30- d = N[1 // 10 , 1 // 10 ]
31- @test ! is_interior_point (d, P ; p= N (2 ))
29+ B = Ball1 (zeros (N, 2 ), N (1 // 10 ))
30+ x = N[1 // 10 , 1 // 10 ]
31+ @test ! is_interior_point (x, B ; p= N (2 ))
3232
33- d = N[1 // 10 , 1 // 10 ] .- LazySets. _rtol (N)
34- @test is_interior_point (d, P ; p= N (2 ))
33+ x = N[1 // 10 , 1 // 10 ] .- LazySets. _rtol (N)
34+ @test ! is_interior_point (x, B ; p= N (2 ))
3535end
0 commit comments