Skip to content

Commit 775e1b9

Browse files
committed
meh, fix tests
1 parent 20e9671 commit 775e1b9

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

tests/test_basic.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -576,16 +576,20 @@ def test_upsample(self):
576576

577577
def test_random_points_on_mesh(self):
578578
n = 10
579-
b, fi = igl.random_points_on_mesh(n, self.v1, self.f1)
579+
b, fi, x = igl.random_points_on_mesh(n, self.v1, self.f1)
580580

581581
self.assertEqual(b.dtype, self.v1.dtype)
582+
self.assertEqual(x.dtype, self.v1.dtype)
582583
self.assertEqual(fi.dtype, self.f1.dtype)
583584

584585
self.assertEqual(b.shape[0], n)
585586
self.assertEqual(b.shape[1], 3)
587+
self.assertEqual(x.shape[0], n)
588+
self.assertEqual(x.shape[1], self.v1.shape[1])
586589
self.assertEqual(fi.shape[0], n)
587590
self.assertTrue(b.flags.c_contiguous)
588591
self.assertTrue(fi.flags.c_contiguous)
592+
self.assertTrue(x.flags.c_contiguous)
589593

590594
def test_boundary_loop(self):
591595
l = igl.boundary_loop(self.f)
@@ -727,10 +731,6 @@ def test_euler_characteristic(self):
727731
eu = igl.euler_characteristic(self.f1)
728732
self.assertEqual(type(eu), int)
729733

730-
def test_euler_characteristic_complete(self):
731-
eu = igl.euler_characteristic_complete(self.v1, self.f1)
732-
self.assertEqual(type(eu), int)
733-
734734
def test_fit_plane(self):
735735
n, c = igl.fit_plane(self.v1)
736736
self.assertTrue(n.dtype == c.dtype == self.v1.dtype)
@@ -1027,8 +1027,10 @@ def test_bbw(self):
10271027
C, BE, _, _, _, _ = igl.read_tgf(
10281028
os.path.join(self.test_data_path, "hand.tgf"))
10291029

1030-
ok, b, bc = igl.boundary_conditions(V, T, C, np.array(
1031-
[], dtype=T.dtype), BE, np.array([], dtype=T.dtype))
1030+
ok, b, bc = igl.boundary_conditions(
1031+
V, T, C, np.array([], dtype=T.dtype), BE,
1032+
np.array([], dtype=T.dtype),
1033+
np.array([], dtype=T.dtype))
10321034

10331035
self.assertTrue(b.flags.c_contiguous)
10341036
self.assertTrue(bc.flags.c_contiguous)

0 commit comments

Comments
 (0)