From ebd3182f01cac7943b1ba561d041697d656902a2 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 2 Aug 2023 10:10:21 +1200 Subject: [PATCH 1/2] [Test] fix overwritten methods --- test/Bridges/lazy_bridge_optimizer.jl | 2 +- test/Nonlinear/Nonlinear.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Bridges/lazy_bridge_optimizer.jl b/test/Bridges/lazy_bridge_optimizer.jl index 61b9e6a7e9..fcf12ee52f 100644 --- a/test/Bridges/lazy_bridge_optimizer.jl +++ b/test/Bridges/lazy_bridge_optimizer.jl @@ -401,7 +401,7 @@ function MOI.supports_constraint( end function MOI.supports( - ::StandardSDPAModel{T}, + ::GeometricSDPAModel{T}, ::MOI.ObjectiveFunction{ <:Union{MOI.VariableIndex,MOI.ScalarQuadraticFunction{T}}, }, diff --git a/test/Nonlinear/Nonlinear.jl b/test/Nonlinear/Nonlinear.jl index 8f95874e68..fe986bc43f 100644 --- a/test/Nonlinear/Nonlinear.jl +++ b/test/Nonlinear/Nonlinear.jl @@ -1038,7 +1038,7 @@ function test_scalar_nonlinear_function_parse_logic_or() return end -function test_scalar_nonlinear_function_parse_logic_or() +function test_scalar_nonlinear_function_parse_logic_and() model = MOI.Utilities.Model{Float64}() x = MOI.add_variable(model) f = MOI.ScalarNonlinearFunction(:&&, Any[x, x]) From e417b7d8c24cf358a390ef509dbd45de712a1f53 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 2 Aug 2023 11:54:14 +1200 Subject: [PATCH 2/2] Fix more warnings --- test/Utilities/constraints.jl | 4 ++-- test/Utilities/functions.jl | 4 ++-- test/Utilities/sets.jl | 4 ++-- test/Utilities/test_operate!.jl | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/Utilities/constraints.jl b/test/Utilities/constraints.jl index 87d19b9f8c..13274a8525 100644 --- a/test/Utilities/constraints.jl +++ b/test/Utilities/constraints.jl @@ -4,7 +4,7 @@ # Use of this source code is governed by an MIT-style license that can be found # in the LICENSE.md file or at https://opensource.org/licenses/MIT. -module TestConstraints +module TestUtilitiesConstraints using Test import MathOptInterface as MOI @@ -61,4 +61,4 @@ end end # module -TestConstraints.runtests() +TestUtilitiesConstraints.runtests() diff --git a/test/Utilities/functions.jl b/test/Utilities/functions.jl index 3374c04b46..d5f2c226ef 100644 --- a/test/Utilities/functions.jl +++ b/test/Utilities/functions.jl @@ -4,7 +4,7 @@ # Use of this source code is governed by an MIT-style license that can be found # in the LICENSE.md file or at https://opensource.org/licenses/MIT. -module TestFunctions +module TestUtilitiesFunctions using Test @@ -2073,4 +2073,4 @@ end end # module -TestFunctions.runtests() +TestUtilitiesFunctions.runtests() diff --git a/test/Utilities/sets.jl b/test/Utilities/sets.jl index e2e85218dd..e059475764 100644 --- a/test/Utilities/sets.jl +++ b/test/Utilities/sets.jl @@ -4,7 +4,7 @@ # Use of this source code is governed by an MIT-style license that can be found # in the LICENSE.md file or at https://opensource.org/licenses/MIT. -module TestSets +module TestUtilitiesSets using SparseArrays using Test @@ -227,4 +227,4 @@ end end # module -TestSets.runtests() +TestUtilitiesSets.runtests() diff --git a/test/Utilities/test_operate!.jl b/test/Utilities/test_operate!.jl index 3f9f44d770..3a9a48abcc 100644 --- a/test/Utilities/test_operate!.jl +++ b/test/Utilities/test_operate!.jl @@ -46,7 +46,7 @@ function _test_function(coefficients::Vector{NTuple{3,T}}) where {T} return MOI.Utilities.operate(vcat, T, _test_function.(coefficients)...) end -function _test_function(pair::Pair{Symbol,<:Any}) where {T} +function _test_function(pair::Pair{Symbol,<:Any}) head, arg = pair if arg isa Vector args = Any[_test_function(a) for a in arg]