Skip to content

Commit 3658458

Browse files
added test for store_trace=true. Passes on my branch, fails with error on origin master.
1 parent f5d9db7 commit 3658458

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/OptimizationEvolutionary/test/runtests.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,10 @@ Random.seed!(1234)
4242
return false
4343
end
4444
sol = solve(prob, CMAES= 40, λ = 100), callback = cb, maxiters = 100)
45+
46+
#test that `store_trace=true` throws error. This should fail now that it is fixed
47+
# @test_throws "type Array has no field value" solve(prob, CMAES(μ = 40, λ = 100), store_trace = true)
48+
49+
#test that `store_trace=true` works now.
50+
solve(prob, CMAES= 40, λ = 100), store_trace = true)
4551
end

0 commit comments

Comments
 (0)