Skip to content

Commit 34fe34d

Browse files
authored
Merge pull request #309 from control-toolbox/auto-juliaformatter-pr
[AUTO] JuliaFormatter.jl run
2 parents 427c25b + 75bc8c9 commit 34fe34d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

test/suite/ocp/test_build_examodel.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function test_build_examodel()
2222
CTModels.control!(ocp, 1)
2323

2424
# Simple dynamics function
25-
dynamics!(r, t, x, u, v) = (r[1] = x[2]; r[2] = u[1])
25+
dynamics!(r, t, x, u, v) = (r[1]=x[2]; r[2]=u[1])
2626
CTModels.dynamics!(ocp, dynamics!)
2727

2828
# Simple objective
@@ -35,7 +35,9 @@ function test_build_examodel()
3535
model = CTModels.build(ocp)
3636

3737
# Attempting to get build_examodel should throw PreconditionError
38-
Test.@test_throws Exceptions.PreconditionError CTModels.get_build_examodel(model)
38+
Test.@test_throws Exceptions.PreconditionError CTModels.get_build_examodel(
39+
model
40+
)
3941

4042
# Verify the error message contains the key information
4143
try
@@ -62,7 +64,7 @@ function test_build_examodel()
6264
CTModels.time!(ocp; t0=0.0, tf=1.0)
6365
CTModels.state!(ocp, 2)
6466
CTModels.control!(ocp, 1)
65-
CTModels.dynamics!(ocp, (r, t, x, u, v) -> (r[1] = x[2]; r[2] = u[1]))
67+
CTModels.dynamics!(ocp, (r, t, x, u, v) -> (r[1]=x[2]; r[2]=u[1]))
6668
CTModels.objective!(ocp, :min, mayer=(x0, xf) -> xf[1]^2)
6769

6870
# Set time dependence (required before build)

0 commit comments

Comments
 (0)