File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 641
641
function _an_element_lazySet (X:: LazySet )
642
642
N = eltype (X)
643
643
e₁ = SingleEntryVector (1 , dim (X), one (N))
644
- return σ (e₁, X)
644
+ v = σ (e₁, X)
645
+ if any (isinf, v)
646
+ throw (ArgumentError (" this implementation assumes a bounded set" ))
647
+ end
648
+ return v
645
649
end
646
650
647
651
# hook into random API
Original file line number Diff line number Diff line change
1
+ for N in [Float64, Float32, Rational{Int}]
2
+ # an_element default implementation
3
+ U = Universe {N} (2 )
4
+ @test_throws ArgumentError LazySets. _an_element_lazySet (U)
5
+ end
Original file line number Diff line number Diff line change @@ -251,6 +251,9 @@ if test_suite_basic
251
251
@testset " LazySets.CompactSet" begin
252
252
include (" Interfaces/CompactSet.jl" )
253
253
end
254
+ @testset " LazySets.LazySet" begin
255
+ include (" Interfaces/LazySet.jl" )
256
+ end
254
257
255
258
# =======================
256
259
# Concrete set operations
You can’t perform that action at this time.
0 commit comments