Skip to content

Commit bf79e6b

Browse files
authored
Merge pull request #138 from control-toolbox/auto-juliaformatter-pr
[AUTO] JuliaFormatter.jl run
2 parents 51978e7 + 0458411 commit bf79e6b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/constraints.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ function __constraint!(
158158
if codim_f !== nothing
159159
@ensure(
160160
length(lb) == codim_f,
161-
CTBase.IncorrectArgument("The length of `lb` and `ub` must match codim_f = $codim_f.")
161+
CTBase.IncorrectArgument(
162+
"The length of `lb` and `ub` must match codim_f = $codim_f."
163+
)
162164
)
163165
end
164166

test/test_constraints.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function test_constraints()
5353
# x(1) == [0, 0, 1] must raise an error if x is of dimension 2
5454
@test_throws CTBase.IncorrectArgument CTModels.constraint!(
5555
ocp_set, :boundary, lb=[0, 0, 1], ub=[0, 1, 2], codim_f=2
56-
)
56+
)
5757

5858
# if no range nor function is provided, lb and ub must have the right length:
5959
# depending on state, control, or variable

0 commit comments

Comments
 (0)