Skip to content

Commit 882938c

Browse files
committed
Add test_volume_from_edges
1 parent ea02e4e commit 882938c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/test_basic.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,17 @@ def test_volume(self):
17271727

17281728

17291729
vol = igl.volume_single(a[0, :], b[0, :], c[0, :], d[0, :])
1730+
1731+
l = igl.edge_lengths(v, t)
1732+
vol = igl.volume_from_edges(l)
1733+
self.assertTrue(vol.flags.c_contiguous)
1734+
self.assertTrue(vol.dtype == v.dtype)
1735+
self.assertTrue(len(vol.shape) == 1)
1736+
self.assertTrue(vol.shape[0] == t.shape[0])
1737+
1738+
def test_volume_from_edges(self):
1739+
#tested in volume
1740+
pass
17301741

17311742
def test_volume_from_vertices(self):
17321743
#tested in volume
@@ -2058,7 +2069,8 @@ def banana(x):
20582069

20592070
self.assertTrue(xopt.flags.c_contiguous)
20602071
self.assertTrue(xopt.dtype == lb.dtype)
2061-
self.assertTrue(xopt.shape == (2, ))
2072+
self.assertTrue(xopt.shape == (2, ))
2073+
20622074

20632075

20642076
if __name__ == '__main__':

0 commit comments

Comments
 (0)