Skip to content

Commit fc833d0

Browse files
committed
updated exception name in test (after update in CTBase v0.18
1 parent 13fba12 commit fc833d0

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import CTParser:
2323
deactivate_backend,
2424
is_active_backend,
2525
@def_exa # todo: remove __default... (as soon as discretise_exa has been moved to CTDirect)
26-
import CTBase: CTBase, ParsingError, UnauthorizedCall
26+
import CTBase: CTBase, ParsingError, PreconditionError
2727
import CTModels:
2828
CTModels,
2929
initial_time,

test/test_onepass_fun.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@ function test_onepass_fun()
27462746
# this one is detected by the generated code (and not the parser)
27472747
t0 = 9.0
27482748
tf = 9.1
2749-
@test_throws UnauthorizedCall @def o begin
2749+
@test_throws PreconditionError @def o begin
27502750
t [t0, tf], time
27512751
t [t0, tf], time
27522752
end
@@ -3026,15 +3026,15 @@ function test_onepass_fun()
30263026
x1(0) min
30273027
end
30283028

3029-
@test_throws UnauthorizedCall @def begin
3029+
@test_throws PreconditionError @def begin
30303030
t [0, 1], time
30313031
x R², state
30323032
u R², control
30333033
derivative(x[1])(t) == t * x[1](t) + u₁(t) # incomplete
30343034
x1(0) min
30353035
end
30363036

3037-
@test_throws UnauthorizedCall @def begin
3037+
@test_throws PreconditionError @def begin
30383038
t [0, 1], time
30393039
x R³, state
30403040
u R², control

0 commit comments

Comments
 (0)