Skip to content

Commit d0965e4

Browse files
committed
fix tests to match
1 parent 0a6d82d commit d0965e4

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

tests/test_basic.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -522,13 +522,16 @@ def test_hausdorff(self):
522522

523523
def test_isolines(self):
524524
func = np.random.rand(self.v1.shape[0], 1)
525-
iso_v, iso_e = igl.isolines(self.v1, self.f1, func, 10)
525+
vals = np.linspace(0,1, 10)
526+
iso_v, iso_e, I = igl.isolines(self.v1, self.f1, func, vals)
526527

527528
self.assertEqual(iso_v.dtype, func.dtype)
528529
self.assertEqual(iso_e.dtype, self.f1.dtype)
529530
self.assertEqual(iso_e.shape[1], 2)
531+
self.assertEqual(iso_e.shape[0], I.shape[0])
530532
self.assertTrue(iso_v.flags.c_contiguous)
531533
self.assertTrue(iso_e.flags.c_contiguous)
534+
self.assertTrue(I.flags.c_contiguous)
532535

533536
def test_unproject_ray(self):
534537
pos = np.random.rand(2, 1)
@@ -1112,7 +1115,7 @@ def test_lscm(self):
11121115
self.assertTrue(uv.flags.c_contiguous)
11131116

11141117
def test_is_irregular_vertex(self):
1115-
is_i = igl.is_irregular_vertex(self.v1, self.f1)
1118+
is_i = igl.is_irregular_vertex(self.f1)
11161119
self.assertEqual(type(is_i[0]), bool)
11171120

11181121
def test_harmonic(self):
@@ -2356,9 +2359,8 @@ def sphere1(point):
23562359

23572360
def test_topological_hole_fill(self):
23582361
f = self.f1
2359-
b = np.array(range(10))
23602362
h = [range(10, 20)]
2361-
ff = igl.topological_hole_fill(f, b, h)
2363+
ff = igl.topological_hole_fill(f, h)
23622364
self.assertTrue(ff.flags.c_contiguous)
23632365
self.assertTrue(ff.shape[1] == 3)
23642366
self.assertTrue(ff.dtype == f.dtype)

0 commit comments

Comments
 (0)