Skip to content

Commit 9ae2f3c

Browse files
committed
Fix format
1 parent b0e4e04 commit 9ae2f3c

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

test/Nonlinear/ReverseAD.jl

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,14 @@ function test_objective_quadratic_multivariate_subexpressions()
153153
@test evaluator.backend.max_chunk == 2
154154
# The call of `_eval_hessian_inner` from `_eval_hessian` needs dynamic dispatch for `Val(chunk)` so it allocates.
155155
# We call directly `_eval_hessian_inner` to check that the rest does not allocates.
156-
@test 0 == @allocated MOI.Nonlinear.ReverseAD._eval_hessian_inner(evaluator.backend, evaluator.backend.objective, H, 1.0, 0, Val(2))
156+
@test 0 == @allocated MOI.Nonlinear.ReverseAD._eval_hessian_inner(
157+
evaluator.backend,
158+
evaluator.backend.objective,
159+
H,
160+
1.0,
161+
0,
162+
Val(2),
163+
)
157164
@test MOI.hessian_lagrangian_structure(evaluator) ==
158165
[(1, 1), (2, 2), (2, 1)]
159166
H = [NaN, NaN, NaN]
@@ -164,7 +171,14 @@ function test_objective_quadratic_multivariate_subexpressions()
164171
hv = [NaN, NaN]
165172
MOI.eval_hessian_lagrangian_product(evaluator, hv, val, v, 1.5, μ)
166173
@test hv 1.5 .* [2 1; 1 2] * v
167-
@test 0 == @allocated MOI.eval_hessian_lagrangian_product(evaluator, hv, val, v, 1.5, μ)
174+
@test 0 == @allocated MOI.eval_hessian_lagrangian_product(
175+
evaluator,
176+
hv,
177+
val,
178+
v,
179+
1.5,
180+
μ,
181+
)
168182
return
169183
end
170184

0 commit comments

Comments
 (0)