Skip to content

Commit b3909a1

Browse files
authored
[Test] fix duplicate method warnings in tests (#2243)
* [Test] fix duplicate method warnings in tests * Updates
1 parent b1f7515 commit b3909a1

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

test/FileFormats/NL/read.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function test_parse_header_assertion_errors()
161161
return
162162
end
163163

164-
function test_parse_header_assertion_errors()
164+
function test_parse_header_common_expressions()
165165
model = NL._CacheModel()
166166
err = ErrorException(
167167
"Unable to parse NL file : we don't support common exprs",

test/Utilities/copy.jl

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,6 @@ function MOI.empty!(model::AbstractConstrainedVariablesModel)
287287
return
288288
end
289289

290-
function MOI.supports_constraint(
291-
::OrderConstrainedVariablesModel,
292-
::Type{MOI.VectorOfVariables},
293-
::Type{MOI.Nonnegatives},
294-
)
295-
return false
296-
end
297-
298290
function MOI.supports_add_constrained_variables(
299291
::OrderConstrainedVariablesModel,
300292
::Type{MOI.Nonnegatives},
@@ -317,14 +309,6 @@ function MOI.supports_add_constrained_variables(
317309
return false
318310
end
319311

320-
function MOI.supports_constraint(
321-
::ReverseOrderConstrainedVariablesModel,
322-
::Type{MOI.VectorOfVariables},
323-
::Type{MOI.Nonnegatives},
324-
)
325-
return true
326-
end
327-
328312
function MOI.supports_add_constrained_variables(
329313
::ReverseOrderConstrainedVariablesModel,
330314
::Type{MOI.Nonnegatives},

0 commit comments

Comments
 (0)