Skip to content

Commit

Permalink
Fix test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Apr 13, 2024
1 parent 486bece commit 814e1e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/plans/test_stopping_criteria.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ struct DummyStoppingCriterion <: StoppingCriterion end
@test typeof(d) === typeof((a & b) & c)
update_stopping_criterion!(d, :MinIterateChange, 1e-8)
@test d.criteria[2].threshold == 1e-8
@test length((d & d).criteria) == 6
e = a | b | c
@test typeof(e) === typeof(a | b | c)
@test typeof(e) === typeof(a | (b | c))
@test typeof(e) === typeof((a | b) | c)
update_stopping_criterion!(e, :MinGradNorm, 1e-9)
@test d.criteria[3].threshold == 1e-9
@test e.criteria[3].threshold == 1e-9
@test length((e | e).criteria) == 6
end

@testset "Stopping Criterion print&summary" begin
Expand Down

0 comments on commit 814e1e1

Please sign in to comment.