Use assert_array_equal to compare results in scalar timeresp test · python-control/python-control@a05b9d5

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):