Skip to content

Commit 001a9eb

Browse files
test: fix IfLifting test
1 parent 994b2db commit 001a9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/if_lifting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ 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+
prob2 = ODEProblem(ss2, [ss2.x => 0.0], (0.0, 5.0))
2525
sol2 = solve(prob2, Tsit5())
2626
@test count(isapprox(pi), sol2.t) == 2
2727
@test any(isapprox(pi), sol2.discretes[1].t)

0 commit comments

Comments
 (0)