Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Dec 31, 2024
1 parent 33231a2 commit 4dcc19a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_str.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def test_str_scalar_argument(self):
def test_str_list_vector():
domain = Mesh(FiniteElement("Lagrange", tetrahedron, 1, (3,), identity_pullback, H1))
x, y, z = SpatialCoordinate(domain)
v = as_vector((x, y, z))
assert str(v) == ("[%s, %s, %s]" % (x, y, z))
v = as_vector((x, y))
assert str(v) == ("[%s, %s]" % (x, y))


def test_str_list_vector_with_zero():
Expand Down

0 comments on commit 4dcc19a

Please sign in to comment.