Skip to content

Commit 270c0ff

Browse files
committed
Update tests
1 parent e33fb8e commit 270c0ff

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/components.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ include("../examples/serial_inductor.jl")
143143
sys = structural_simplify(ll_model)
144144
check_contract(sys)
145145
u0 = states(sys) .=> 0
146-
@test_throws Any ODEProblem(sys, u0, (0, 10.0))
147-
@test_throws Any ODAEProblem(sys, u0, (0, 10.0))
146+
@test_nowarn ODEProblem(sys, u0, (0, 10.0))
147+
@test_nowarn ODAEProblem(sys, u0, (0, 10.0))
148148
prob = DAEProblem(sys, Differential(t).(states(sys)) .=> 0, u0, (0, 0.5))
149149
@test_nowarn sol = solve(prob, DFBDF())
150150

test/reduction.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ show(io, MIME("text/plain"), lorenz1_aliased);
3737
str = String(take!(io));
3838
@test all(s -> occursin(s, str), ["lorenz1", "States (2)", "Parameters (3)"])
3939
reduced_eqs = [D(x) ~ σ * (y - x)
40-
D(y) ~ β + x *- z) - y]
40+
D(y) ~ β + x *+ a) - y]
4141
test_equal.(equations(lorenz1_aliased), reduced_eqs)
4242
@test isempty(setdiff(states(lorenz1_aliased), [x, y, z]))
4343
test_equal.(observed(lorenz1_aliased), [u ~ 0
44-
z ~ x - y
45-
a ~ -z])
44+
a ~ y - x
45+
z ~ -a])
4646

4747
# Multi-System Reduction
4848

0 commit comments

Comments
 (0)