Skip to content

Commit

Permalink
[Test] fix duplicate method warnings in tests (#2243)
Browse files Browse the repository at this point in the history
* [Test] fix duplicate method warnings in tests

* Updates
  • Loading branch information
odow authored Aug 3, 2023
1 parent b1f7515 commit b3909a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
2 changes: 1 addition & 1 deletion test/FileFormats/NL/read.jl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function test_parse_header_assertion_errors()
return
end

function test_parse_header_assertion_errors()
function test_parse_header_common_expressions()
model = NL._CacheModel()
err = ErrorException(
"Unable to parse NL file : we don't support common exprs",
Expand Down
16 changes: 0 additions & 16 deletions test/Utilities/copy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,6 @@ function MOI.empty!(model::AbstractConstrainedVariablesModel)
return
end

function MOI.supports_constraint(
::OrderConstrainedVariablesModel,
::Type{MOI.VectorOfVariables},
::Type{MOI.Nonnegatives},
)
return false
end

function MOI.supports_add_constrained_variables(
::OrderConstrainedVariablesModel,
::Type{MOI.Nonnegatives},
Expand All @@ -317,14 +309,6 @@ function MOI.supports_add_constrained_variables(
return false
end

function MOI.supports_constraint(
::ReverseOrderConstrainedVariablesModel,
::Type{MOI.VectorOfVariables},
::Type{MOI.Nonnegatives},
)
return true
end

function MOI.supports_add_constrained_variables(
::ReverseOrderConstrainedVariablesModel,
::Type{MOI.Nonnegatives},
Expand Down

0 comments on commit b3909a1

Please sign in to comment.