Skip to content

Commit 6462671

Browse files
authored
[Test] fix various warnings in tests (#2241)
1 parent ef30cdc commit 6462671

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

test/Bridges/lazy_bridge_optimizer.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ function MOI.supports_constraint(
401401
end
402402

403403
function MOI.supports(
404-
::StandardSDPAModel{T},
404+
::GeometricSDPAModel{T},
405405
::MOI.ObjectiveFunction{
406406
<:Union{MOI.VariableIndex,MOI.ScalarQuadraticFunction{T}},
407407
},

test/Nonlinear/Nonlinear.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ function test_scalar_nonlinear_function_parse_logic_or()
10381038
return
10391039
end
10401040

1041-
function test_scalar_nonlinear_function_parse_logic_or()
1041+
function test_scalar_nonlinear_function_parse_logic_and()
10421042
model = MOI.Utilities.Model{Float64}()
10431043
x = MOI.add_variable(model)
10441044
f = MOI.ScalarNonlinearFunction(:&&, Any[x, x])

test/Utilities/constraints.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Use of this source code is governed by an MIT-style license that can be found
55
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
66

7-
module TestConstraints
7+
module TestUtilitiesConstraints
88

99
using Test
1010
import MathOptInterface as MOI
@@ -61,4 +61,4 @@ end
6161

6262
end # module
6363

64-
TestConstraints.runtests()
64+
TestUtilitiesConstraints.runtests()

test/Utilities/functions.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Use of this source code is governed by an MIT-style license that can be found
55
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
66

7-
module TestFunctions
7+
module TestUtilitiesFunctions
88

99
using Test
1010

@@ -2073,4 +2073,4 @@ end
20732073

20742074
end # module
20752075

2076-
TestFunctions.runtests()
2076+
TestUtilitiesFunctions.runtests()

test/Utilities/sets.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Use of this source code is governed by an MIT-style license that can be found
55
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
66

7-
module TestSets
7+
module TestUtilitiesSets
88

99
using SparseArrays
1010
using Test
@@ -227,4 +227,4 @@ end
227227

228228
end # module
229229

230-
TestSets.runtests()
230+
TestUtilitiesSets.runtests()

test/Utilities/test_operate!.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function _test_function(coefficients::Vector{NTuple{3,T}}) where {T}
4646
return MOI.Utilities.operate(vcat, T, _test_function.(coefficients)...)
4747
end
4848

49-
function _test_function(pair::Pair{Symbol,<:Any}) where {T}
49+
function _test_function(pair::Pair{Symbol,<:Any})
5050
head, arg = pair
5151
if arg isa Vector
5252
args = Any[_test_function(a) for a in arg]

0 commit comments

Comments
 (0)