Skip to content

Commit 8c5b752

Browse files
geoffroylecontedpo
authored andcommitted
update tests
1 parent ce2fa77 commit 8c5b752

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/runtests.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,12 @@ end
170170
y = rand(SM.meta.ncon)
171171
@test SM.meta.nvar == qp.meta.nvar + ns
172172
@test obj(SM, x) == obj(SMLO, x)
173-
@test grad(SM, x) == grad(SMLO, x)
173+
@test grad(SM, x) grad(SMLO, x)
174174
@test cons(SM, x) == cons(SMLO, x)
175175
@test hprod(SMLO, x, x) == hprod(SMLO, x, x)
176176
@test jtprod(SMLO, x, y) == jtprod(SM, x, y)
177-
@test objgrad(SMLO, x) == objgrad(SM, x)
177+
@test objgrad(SMLO, x)[1] objgrad(SM, x)[1]
178+
@test objgrad(SMLO, x)[2] objgrad(SM, x)[2]
178179
end
179180

180181
include("test_presolve.jl")

0 commit comments

Comments
 (0)