From 3670010eccc359734001ec0a64c381c7ab6b7d1c Mon Sep 17 00:00:00 2001 From: Alan <37482427+alemon-aquaveo@users.noreply.github.com> Date: Thu, 9 Nov 2023 12:01:51 -0700 Subject: [PATCH] -fix python test --- _package/tests/unit_tests/triangulate_tests/tin_pyt.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/_package/tests/unit_tests/triangulate_tests/tin_pyt.py b/_package/tests/unit_tests/triangulate_tests/tin_pyt.py index e42fbcbb..6574e5ad 100644 --- a/_package/tests/unit_tests/triangulate_tests/tin_pyt.py +++ b/_package/tests/unit_tests/triangulate_tests/tin_pyt.py @@ -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."""