Skip to content

Commit 65eecbb

Browse files
committed
test(OptimizationMOI): test that the stats are reported
1 parent 58e8e3d commit 65eecbb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/OptimizationMOI/test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ end
8888
sol = solve(prob, opt) #test reuse of optimizer
8989
@test 10 * sol.objective < l1
9090

91+
# test stats
92+
@test sol.stats.time > 0
93+
@test sol.stats.iterations > 0
94+
9195
sol = solve(prob,
9296
OptimizationMOI.MOI.OptimizerWithAttributes(Ipopt.Optimizer,
9397
"max_cpu_time" => 60.0))

0 commit comments

Comments
 (0)