Skip to content

Commit 1835a56

Browse files
test: fix IfLifting test
1 parent 994b2db commit 1835a56

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/if_lifting.jl

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ using ModelingToolkit: t_nounits as t, D_nounits as D, IfLifting, no_if_lift
2121
@test operation(only(equations(ss2)).rhs) === ifelse
2222

2323
discvar = only(parameters(ss2))
24-
prob2 = ODEProblem(ss2, [x => 0.0], (0.0, 5.0))
24+
prob1 = ODEProblem(ss1, [ss1.x => 0.0], (0.0, 5.0))
25+
sol1 = solve(prob1, Tsit5())
26+
prob2 = ODEProblem(ss2, [ss2.x => 0.0], (0.0, 5.0))
2527
sol2 = solve(prob2, Tsit5())
2628
@test count(isapprox(pi), sol2.t) == 2
2729
@test any(isapprox(pi), sol2.discretes[1].t)

0 commit comments

Comments
 (0)