-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Float32 constraints in poly pipeline
Also fix dimensionality constraints
- Loading branch information
1 parent
252d40e
commit ba53c40
Showing
3 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using Makie | ||
using Makie.GeometryBasics | ||
|
||
@testset "poly_convert with empty Float64 polygon vector" begin | ||
polygons = Observable(Polygon{2,Float64}[]) | ||
|
||
@testset "Unit test: poly_convert" begin | ||
@test Makie.poly_convert(Polygon{2,Float64}[], identity) isa Vector{<: GeometryBasics.Mesh{2,Float64}} | ||
end | ||
|
||
@testset "Integration test: do this with `poly`" begin | ||
poly(polygons) | ||
@test_nowarn push!(polygons[], Polygon([Point(1.0, 2.0), Point(2.0, 3.0), Point(3.0, 2.0)])) | ||
@test_nowarn notify(polygons) | ||
|
||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters