Skip to content

Commit

Permalink
✅ Add test for depwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Oct 14, 2018
1 parent b52ad84 commit 49d95c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/MOIWrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ struct ExoticFunction <: MOI.AbstractScalarFunction end
MOI.get(src::BadObjectiveModel, ::MOI.ObjectiveFunctionType) = ExoticFunction

@testset "failcopy" begin
optimizer = OSQP.Optimizer()
# TODO change OSQPOptimizer() to OSQP.Optimizer() in OSQP v0.6
optimizer = OSQPOptimizer()
MOIT.failcopytestc(optimizer)
@test_throws MOI.UnsupportedAttribute{MOI.ObjectiveFunction{ExoticFunction}} MOI.copy_to(optimizer, BadObjectiveModel())
end

0 comments on commit 49d95c9

Please sign in to comment.