Skip to content

Commit

Permalink
Add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolaCourtier committed May 17, 2024
1 parent b663396 commit e2ae1dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit/test_optimisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def test_optimiser_kwargs(self, cost, optimiser):
x0_new = np.array([0.6])
optim = optimiser(cost=cost, x0=x0_new)
assert optim.x0 == x0_new
assert optim.x0 != cost.x0

if optimiser in [pybop.SciPyMinimize]:
# Check a method that uses gradient information
Expand Down

0 comments on commit e2ae1dd

Please sign in to comment.