Skip to content

Commit

Permalink
Update C_API.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Jan 6, 2025
1 parent 86f8a5a commit 798cb94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/C_API.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,11 @@ function test_algorithm_name()
sol = "Limited-memory BFGS (L-BFGS) (local, derivative-based)"
@test algorithm_name(algorithm) == sol
@test algorithm_name(:LD_LBFGS) == sol
@test algorithm_name(10) == sol
if NLopt._is_version_newer_than_2_9()
@test algorithm_name(10) == sol
else
@test algorithm_name(11) == sol
end
opt = Opt(:LD_LBFGS, 2)
@test algorithm_name(opt) == sol
sprint(show, algorithm_name(:LD_LBFGS))
Expand Down

0 comments on commit 798cb94

Please sign in to comment.