Skip to content

Commit

Permalink
-fix python test
Browse files Browse the repository at this point in the history
  • Loading branch information
alemon-aquaveo committed Nov 9, 2023
1 parent 728c6d5 commit cf3a180
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _package/tests/unit_tests/triangulate_tests/tin_pyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,10 @@ def test_optimize_triangulation(self):
tris_adj = ((0,), (0, 1, 2, 4), (4, 5, 6), (0, 1), (2, 4, 5, 3),
(6, 7), (1, 2, 3), (3, 5, 6, 7), (7,))
trtin.set_geometry(pts, tris, tris_adj)
trtin.optimize_triangulation()
np.testing.assert_array_equal(np.array(tris), trtin.triangles)
self.assertTrue(trtin.optimize_triangulation())
tris_after = (0, 1, 3, 4, 6, 3, 1, 4, 3, 4, 7, 6, 1, 2, 4, 5, 7, 4, 2, 5, 4, 5, 8, 7)
np.testing.assert_array_equal(np.array(tris_after), trtin.triangles)
self.assertFalse(trtin.optimize_triangulation())

def test_build_tris_adj_to_pts(self):
"""Test building triangles adjacent to points."""
Expand Down

0 comments on commit cf3a180

Please sign in to comment.