@@ -144,7 +144,11 @@ MOI.get_fallback(model::MOI.ModelLike, ::ListOfNonstandardBridges) = Type[]
144
144
145
145
include (" precompile.jl" )
146
146
147
- function _test_structural_identical (a:: MOI.ModelLike , b:: MOI.ModelLike ; allow_constraint_function_error:: Bool = false )
147
+ function _test_structural_identical (
148
+ a:: MOI.ModelLike ,
149
+ b:: MOI.ModelLike ;
150
+ allow_constraint_function_error:: Bool = false ,
151
+ )
148
152
# Test that the variables are the same. We make the strong assumption that
149
153
# the variables are added in the same order to both models.
150
154
a_x = MOI. get (a, MOI. ListOfVariableIndices ())
@@ -193,7 +197,8 @@ function _test_structural_identical(a::MOI.ModelLike, b::MOI.ModelLike; allow_co
193
197
try
194
198
f_b = MOI. get (b, MOI. ConstraintFunction (), ci)
195
199
catch err
196
- if allow_constraint_function_error && err isa MOI. GetAttributeNotAllowed{MOI. ConstraintFunction}
200
+ if allow_constraint_function_error &&
201
+ err isa MOI. GetAttributeNotAllowed{MOI. ConstraintFunction}
197
202
continue
198
203
else
199
204
rethrow (err)
@@ -276,7 +281,11 @@ function runtests(
276
281
# Load a non-bridged input model, and check that getters are the same.
277
282
test = MOI. Utilities. UniversalFallback (MOI. Utilities. Model {eltype} ())
278
283
input_fn (test)
279
- _test_structural_identical (test, model; allow_constraint_function_error = allow_outer_constraint_function_error)
284
+ _test_structural_identical (
285
+ test,
286
+ model;
287
+ allow_constraint_function_error = allow_outer_constraint_function_error,
288
+ )
280
289
# Load a bridged target model, and check that getters are the same.
281
290
target = MOI. Utilities. UniversalFallback (MOI. Utilities. Model {eltype} ())
282
291
output_fn (target)
0 commit comments