Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Mar 27, 2024
1 parent 13d2a5c commit 25cc1b2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/qcqp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ MOI.Utilities.@model(
(),
)

function MOI.supports(::AffineObjectiveModel{T}, ::MOI.ObjectiveFunction{F}) where {T,F<:MOI.AbstractFunction}
function MOI.supports(
::AffineObjectiveModel{T},
::MOI.ObjectiveFunction{F},
) where {T,F<:MOI.AbstractFunction}
return F == MOI.ScalarAffineFunction{T}
end

Expand Down Expand Up @@ -363,7 +366,8 @@ function test_inner_bridge(x, y, T)
MOI.set(model, MOI.ObjectiveFunction{typeof(p)}(), p)
MOI.Utilities.final_touch(model, nothing)
F = MOI.ScalarAffineFunction{T}
@test MOI.ObjectiveFunction{F}() in MOI.get(inner, MOI.ListOfModelAttributesSet())
@test MOI.ObjectiveFunction{F}() in
MOI.get(inner, MOI.ListOfModelAttributesSet())
end

function runtests(x, y)
Expand Down

0 comments on commit 25cc1b2

Please sign in to comment.