Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yaugenst committed Nov 20, 2023
1 parent 6a09002 commit 5a7cf20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_fea2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ def test_shape(self, fea2d_k_instance):
def test_dofs(self, fea2d_k_instance):
dofs = fea2d_k_instance.dofs
assert isinstance(dofs, np.ndarray)
assert dofs.shape == (5, 5, 2)
assert np.all(dofs == np.arange(50).reshape(5, 5, 2))
assert dofs.shape == (50,)
assert np.all(dofs == np.arange(50))

def test_fixdofs(self, fea2d_k_instance):
fixdofs = fea2d_k_instance.fixdofs
Expand All @@ -42,8 +42,8 @@ def test_shape(self, fea2d_t_instance):
def test_dofs(self, fea2d_t_instance):
dofs = fea2d_t_instance.dofs
assert isinstance(dofs, np.ndarray)
assert dofs.shape == (5, 5)
assert np.all(dofs == np.arange(25).reshape(5, 5))
assert dofs.shape == (25,)
assert np.all(dofs == np.arange(25))

def test_fixdofs(self, fea2d_t_instance):
fixdofs = fea2d_t_instance.fixdofs
Expand Down

0 comments on commit 5a7cf20

Please sign in to comment.