Skip to content

Commit

Permalink
fix a unit test error for M1
Browse files Browse the repository at this point in the history
  • Loading branch information
t-imamichi committed Sep 11, 2023
1 parent 6c4016a commit 7cd2e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/algorithms/test_admm.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def test_admm_ex5_warm_start(self):
self.assertIsNotNone(solution)
self.assertIsInstance(solution, ADMMOptimizationResult)
self.assertIsNotNone(solution.x)
np.testing.assert_almost_equal([0.0, 1.0, 0.0], solution.x, 3)
self.assertTrue(np.allclose(solution.x, [0, 1, 0]) or np.allclose(solution.x, [1, 0, 0]))
self.assertIsNotNone(solution.fval)
np.testing.assert_almost_equal(1.0, solution.fval, 3)
self.assertIsNotNone(solution.state)
Expand Down

0 comments on commit 7cd2e8a

Please sign in to comment.