Skip to content

Commit a02b23f

Browse files
Apply SciMLStyle formatting
1 parent 1ebab2c commit a02b23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/function_building_error_messages.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ OptimizationProblem(optf, 1.0)
510510
# Test OptimizationFunction{iip} respects explicit iip parameter
511511
# This function would fail isinplace check due to method ambiguity
512512
struct ProblematicOptFunction end
513-
(::ProblematicOptFunction)(x, p) = sum(x.^2)
513+
(::ProblematicOptFunction)(x, p) = sum(x .^ 2)
514514
# But when iip is explicitly provided, it should work without calling isinplace
515515
@test_nowarn OptimizationFunction{false}(ProblematicOptFunction())
516516
@test_nowarn OptimizationFunction{true}(ProblematicOptFunction())

0 commit comments

Comments
 (0)