Skip to content

Commit d76c1ac

Browse files
committed
Fix format
1 parent 5c75493 commit d76c1ac

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

‎test/Nonlinear/test_Nonlinear.jl‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,18 +353,19 @@ function test_moi_model_api()
353353
@test MOI.get(model, MOI.ConstraintSet(), ci) == set
354354
@test MOI.Utilities.rows(model, ci) == row
355355
end
356-
wrong_set_ci = MOI.ConstraintIndex{
357-
MOI.ScalarNonlinearFunction,
358-
MOI.LessThan{Float64},
359-
}(indices[1].value)
356+
wrong_set_ci =
357+
MOI.ConstraintIndex{MOI.ScalarNonlinearFunction,MOI.LessThan{Float64}}(
358+
indices[1].value,
359+
)
360360
@test !MOI.is_valid(model, wrong_set_ci)
361361
@test_throws MOI.InvalidIndex MOI.get(
362362
model,
363363
MOI.ConstraintFunction(),
364364
wrong_set_ci,
365365
)
366366

367-
expected_types = [(MOI.ScalarNonlinearFunction, typeof(set)) for set in sets]
367+
expected_types =
368+
[(MOI.ScalarNonlinearFunction, typeof(set)) for set in sets]
368369
@test MOI.get(model, MOI.ListOfConstraintTypesPresent()) == expected_types
369370
MOI.set(model, MOI.ConstraintSet(), indices[2], MOI.LessThan(6.0))
370371
@test MOI.get(model, MOI.ConstraintSet(), indices[2]) == MOI.LessThan(6.0)
@@ -377,7 +378,8 @@ function test_moi_model_api()
377378
@test MOI.get(model, MOI.ConstraintDualStart(), indices[1]) === nothing
378379
MOI.set(model, MOI.ConstraintDualStart(), indices[1], 2)
379380
@test MOI.get(model, MOI.ConstraintDualStart(), indices[1]) == 2.0
380-
@test Nonlinear.constraint_dual_starts(model) == [2.0, nothing, nothing, nothing]
381+
@test Nonlinear.constraint_dual_starts(model) ==
382+
[2.0, nothing, nothing, nothing]
381383
MOI.set(model, MOI.ConstraintDualStart(), indices[1], nothing)
382384
@test MOI.get(model, MOI.ConstraintDualStart(), indices[1]) === nothing
383385

0 commit comments

Comments
 (0)