From f1b8e72bca44e7ce97af60c81be9c1e0e4201584 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Wed, 4 Sep 2024 08:41:37 -0400 Subject: [PATCH] Update optimizationsystem.jl --- test/optimizationsystem.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/optimizationsystem.jl b/test/optimizationsystem.jl index 8bd39609e1..f182e3ef87 100644 --- a/test/optimizationsystem.jl +++ b/test/optimizationsystem.jl @@ -298,11 +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) - @test_throws ErrorException OptimizationProblem(sys, + @test_throws Any OptimizationProblem(sys, [x => 0.0, y => 0.0], [a => 1.0, b => 100.0], lcons = [0.0]) - @test_throws ErrorException OptimizationProblem(sys, + @test_throws Any OptimizationProblem(sys, [x => 0.0, y => 0.0], [a => 1.0, b => 100.0], ucons = [0.0])