From 623f986def3b7cbc5599e5a1725f2f2939a33514 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 31 Jul 2024 12:16:03 -0400 Subject: [PATCH] Update optimizationsystem.jl --- test/optimizationsystem.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/optimizationsystem.jl b/test/optimizationsystem.jl index c1562f175e..8bd39609e1 100644 --- a/test/optimizationsystem.jl +++ b/test/optimizationsystem.jl @@ -298,15 +298,11 @@ end loss = (a - x)^2 + b * (y - x^2)^2 @named sys = OptimizationSystem(loss, [x, y], [a, b], constraints = [x^2 + y^2 ≲ 0.0]) sys = complete(sys) - OptimizationProblem(sys, + @test_throws ErrorException OptimizationProblem(sys, [x => 0.0, y => 0.0], [a => 1.0, b => 100.0], lcons = [0.0]) - @test_throws ArgumentError OptimizationProblem(sys, - [x => 0.0, y => 0.0], - [a => 1.0, b => 100.0], - lcons = [0.0]) - @test_throws ArgumentError OptimizationProblem(sys, + @test_throws ErrorException OptimizationProblem(sys, [x => 0.0, y => 0.0], [a => 1.0, b => 100.0], ucons = [0.0])