From 6f07624fa7106228831335dacef59507918e1904 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Sat, 7 Oct 2023 17:37:58 +0200 Subject: [PATCH] Fix overwritten tests with duplicate function names (#3539) --- test/test_complex.jl | 2 +- test/test_nlp.jl | 2 +- test/test_variable.jl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_complex.jl b/test/test_complex.jl index 7e8a49844b3..80867627273 100644 --- a/test/test_complex.jl +++ b/test/test_complex.jl @@ -119,7 +119,7 @@ function test_complex_vector_constraint() @test moi_set(con_obj) == MOI.Zeros(1) end -function test_complex_vector_constraint() +function test_complex_vector_constraint_quadratic() model = Model() @variable(model, x) con_ref = @constraint(model, [(1 + 2im) * x^2 + 1] in MOI.Zeros(1)) diff --git a/test/test_nlp.jl b/test/test_nlp.jl index ff8be02a7bc..a154be09f9e 100644 --- a/test/test_nlp.jl +++ b/test/test_nlp.jl @@ -1365,7 +1365,7 @@ function test_user_defined_function_checked_error_univariate_other_error() return end -function test_user_defined_function_checked_error_univariate() +function test_user_defined_function_checked_error_univariate_autodiff_fail() f(x) = (x - 1)^2 function ∇f(x) if x >= 1 diff --git a/test/test_variable.jl b/test/test_variable.jl index 8b97242f115..1029c10a20f 100644 --- a/test/test_variable.jl +++ b/test/test_variable.jl @@ -1215,7 +1215,7 @@ function test_complex_variable() return end -function test_complex_variable() +function test_complex_variable_vector_of_variables() model = Model() @variable(model, x[1:2] in ComplexPlane()) @test x[1] isa GenericAffExpr{ComplexF64,VariableRef}