Skip to content

Commit 1d74feb

Browse files
arnavk23tmigot
andauthored
Update test/runtests.jl
Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
1 parent cbe657e commit 1d74feb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ end
110110
@testset "ipopt with AbstractNLSModel" begin
111111
nls = ADNLSModel(x -> [x[1] - 1, x[2] - 2], [0.0, 0.0], 2)
112112
stats = ipopt(nls, print_level = 0)
113-
@test isapprox(stats.solution[1:2], [1.0, 2.0], rtol = 1e-6)
113+
@test isapprox(stats.solution, [1.0, 2.0], rtol = 1e-6)
114114
@test stats.status == :first_order
115115
end
116116

0 commit comments

Comments
 (0)