Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed Nov 8, 2024
1 parent ec6a6d5 commit 82c67b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pls.jl
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ end
fm_mod = deepcopy(fm)
fm_mod.optsum.fmin += 1
saveoptsum(seekstart(io), fm_mod)
@test_throws(ArgumentError("model m at final does not give stored fmin within given tolerances"),
restoreoptsum!(m, seekstart(io)))
@test_throws(ArgumentError("model at final does not give stored fmin within atol=0.0, rtol=1.0e-8"),
restoreoptsum!(m, seekstart(io); atol=0.0, rtol=1e-8))
restoreoptsum!(m, seekstart(io); atol=1)
@test m.optsum.fmin - fm.optsum.fmin 1

Expand Down

0 comments on commit 82c67b1

Please sign in to comment.