Skip to content

Commit 623f986

Browse files
Update optimizationsystem.jl
1 parent 6869e92 commit 623f986

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/optimizationsystem.jl

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,15 +298,11 @@ end
298298
loss = (a - x)^2 + b * (y - x^2)^2
299299
@named sys = OptimizationSystem(loss, [x, y], [a, b], constraints = [x^2 + y^2 0.0])
300300
sys = complete(sys)
301-
OptimizationProblem(sys,
301+
@test_throws ErrorException OptimizationProblem(sys,
302302
[x => 0.0, y => 0.0],
303303
[a => 1.0, b => 100.0],
304304
lcons = [0.0])
305-
@test_throws ArgumentError OptimizationProblem(sys,
306-
[x => 0.0, y => 0.0],
307-
[a => 1.0, b => 100.0],
308-
lcons = [0.0])
309-
@test_throws ArgumentError OptimizationProblem(sys,
305+
@test_throws ErrorException OptimizationProblem(sys,
310306
[x => 0.0, y => 0.0],
311307
[a => 1.0, b => 100.0],
312308
ucons = [0.0])

0 commit comments

Comments
 (0)