Skip to content

Commit

Permalink
increase test coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
kellertuer committed Aug 14, 2024
1 parent 08a0511 commit 649bc7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/solvers/test_subgradient_method.jl
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ include("../utils/example_tasks.jl")
Random.seed!(23)
q4 = subgradient_method(M, f, ∂f!; evaluation=InplaceEvaluation())
@test isapprox(M, q4, p; atol=0.5) # random point -> not that close
# in-place
q5 = copy(M, p0)
subgradient_method!(M, f, ∂f!, q5; evaluation=InplaceEvaluation())
@test isapprox(M, q3, q5)
# Check Fallbacks of Problem
@test get_cost(mp, q1) == 0.0
@test norm(M, q1, get_subgradient(mp, q1)) == 0
Expand Down

0 comments on commit 649bc7e

Please sign in to comment.