Skip to content

Commit f26a31b

Browse files
formatting
1 parent 044dfb2 commit f26a31b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/optimizationsystem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ end
137137
# nested constraints
138138
@testset "nested systems" begin
139139
@variables x y
140-
@parameters a=1
140+
@parameters a = 1
141141
o1 = (x - a)^2
142142
o2 = (y - 1 / 2)^2
143143
c1 = [
@@ -155,11 +155,11 @@ end
155155
@test isequal(equations(sys), (sys1.x - 1)^2 + (sys2.y - 1 / 2)^2)
156156
@test isequal(states(sys), [sys1.x, sys2.y])
157157

158-
prob_ = remake(prob, u0=[1.0, 0.0], p=[2.0])
158+
prob_ = remake(prob, u0 = [1.0, 0.0], p = [2.0])
159159
@test isequal(prob_.u0, [1.0, 0.0])
160160
@test isequal(prob_.p, [2.0])
161161

162-
prob_ = remake(prob, u0=Dict(sys1.x => 1.0), p=Dict(sys1.a => 2.0))
162+
prob_ = remake(prob, u0 = Dict(sys1.x => 1.0), p = Dict(sys1.a => 2.0))
163163
@test isequal(prob_.u0, [1.0, 0.0])
164164
@test isequal(prob_.p, [2.0])
165165
end

0 commit comments

Comments
 (0)