Skip to content

Commit f1b8e72

Browse files
Update optimizationsystem.jl
1 parent 90f47ec commit f1b8e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/optimizationsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +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-
@test_throws ErrorException OptimizationProblem(sys,
301+
@test_throws Any OptimizationProblem(sys,
302302
[x => 0.0, y => 0.0],
303303
[a => 1.0, b => 100.0],
304304
lcons = [0.0])
305-
@test_throws ErrorException OptimizationProblem(sys,
305+
@test_throws Any OptimizationProblem(sys,
306306
[x => 0.0, y => 0.0],
307307
[a => 1.0, b => 100.0],
308308
ucons = [0.0])

0 commit comments

Comments
 (0)