Skip to content

Commit 6093a0d

Browse files
committed
Fix tests
1 parent 8616c6b commit 6093a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/clock.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ S = Shift(t, 1)
122122
@test full_equations(sys2) == [S(z) ~ z_t; S(z_t) ~ z + Sample(t, dt)(y)]
123123
# TODO: set Hold(ud)
124124
prob = ODEProblem(sys1, [x => 0.0, y => 0.0], (0.0, 1.0), [kp => 1.0, Hold(ud) => 0.0]);
125+
using OrdinaryDiffEq, DiffEqCallbacks
125126
exprs, svs, pp = ModelingToolkit.generate_discrete_affect(syss, inputs, 1);
126127
prob = remake(prob, p = zeros(Float64, length(pp)));
127128
prob.p[1] = 1.0;
@@ -130,7 +131,6 @@ cb = PeriodicCallback(gen_affect!, 0.1);
130131
sol2 = solve(prob, Tsit5(), callback = cb);
131132

132133
# kp is the only real parameter
133-
using OrdinaryDiffEq, DiffEqCallbacks
134134
function foo!(du, u, p, t)
135135
x = u[1]
136136
ud = p[2]

0 commit comments

Comments
 (0)