Skip to content

Commit a05b9d5

Browse files
committed
Use assert_array_equal to compare results in scalar timeresp test
1 parent b7eeb79 commit a05b9d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

control/tests/flatsys_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,9 +470,9 @@ def terminal_cost(x, u):
470470
r1 = traj1.response(teval)
471471
r2 = traj2.response(teval)
472472

473-
assert np.max(abs(r1.x-r2.x)) == 0
474-
assert np.max(abs(r1.u-r2.u)) == 0
475-
assert np.max(abs(r1.y-r2.y)) == 0
473+
np.testing.assert_array_equal(r1.x, r2.x)
474+
np.testing.assert_array_equal(r1.y, r2.y)
475+
np.testing.assert_array_equal(r1.u, r2.u)
476476

477477

478478
def test_bezier_basis(self):

0 commit comments

Comments
 (0)