Skip to content

Commit ed259d4

Browse files
committed
fix format
1 parent d8da865 commit ed259d4

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/parse.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,18 @@ end
282282

283283
function _parse_reduce_expression(stack, data, expr, x, parent_index)
284284
if length(x.args) != 3
285-
error("Unsupported reduce expression: $x. Expected reduce(op, collection).")
285+
error(
286+
"Unsupported reduce expression: $x. Expected reduce(op, collection).",
287+
)
286288
end
287289

288290
op = x.args[2]
289291
collection = x.args[3]
290292

291293
if !Meta.isexpr(collection, :vect)
292-
error("Unsupported reduce collection: $collection. Expected a vector literal.")
294+
error(
295+
"Unsupported reduce collection: $collection. Expected a vector literal.",
296+
)
293297
end
294298

295299
args = collection.args

test/ArrayDiff.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,16 +696,15 @@ function test_objective_reduce_atan()
696696
x1 = 1.0
697697
x2 = 2.0
698698
x3 = 3.0
699-
@test MOI.eval_objective(evaluator, [x1, x2, x3]) ==
700-
atan(atan(x1, x2), x3)
699+
@test MOI.eval_objective(evaluator, [x1, x2, x3]) == atan(atan(x1, x2), x3)
701700
g = ones(3)
702701
MOI.eval_objective_gradient(evaluator, g, [x1, x2, x3])
703702
@test g [
704703
x2 * x3 / ((x1^2 + x2^2) * (x3^2 + atan(x1, x2)^2)),
705704
-x1 * x3 / ((x1^2 + x2^2) * (x3^2 + atan(x1, x2)^2)),
706705
-atan(x1, x2) / (x3^2 + atan(x1, x2)^2),
707706
]
708-
return
707+
return
709708
end
710709

711710
end # module

0 commit comments

Comments
 (0)