Skip to content

Commit a05f9f4

Browse files
Merge pull request #327 from alxbilger/unittestmass
Add unit test for Mass multiple inheritance
2 parents 26b4611 + da9e835 commit a05f9f4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

bindings/Sofa/tests/Core/Mass.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,8 @@ def test_mass_matrix_access_blocks3x3(self):
5454
self.assertEqual(M.ndim, 2)
5555
self.assertEqual(M.shape, (960, 960))
5656
self.assertEqual(M.nnz, 9480)
57+
58+
def test_mass_mstate(self):
59+
60+
root = self.simulate_beam("CompressedRowSparseMatrixMat3x3d")
61+
self.assertNotEqual(root.mass.mstate, None)

0 commit comments

Comments
 (0)