Skip to content

Commit

Permalink
Add periodic tests for triangulation
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Feb 26, 2024
1 parent fcb1fe7 commit 1de8ff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ end
vertices = Cint[3 1; 1 3; 2 4]

@test delaunay_compute_neighbors(data_points, vertices) == [0 0; 0 0; 2 1]
@test delaunay_compute_neighbors(data_points, vertices, periodicity = (true, false)) == [0 0; 2 1; 2 1]
@test delaunay_compute_neighbors(data_points, vertices, periodicity = (false, true)) == [2 1; 0 0; 2 1]
@test delaunay_compute_neighbors(data_points, vertices, periodicity = (true, true)) == [2 1; 2 1; 2 1]
end

@testset verbose=true showtiming=true "build_polygon_mesh" begin
Expand Down

0 comments on commit 1de8ff3

Please sign in to comment.