Skip to content

Commit

Permalink
test: fix IfLifting test
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Dec 24, 2024
1 parent 994b2db commit 001a9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/if_lifting.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ using ModelingToolkit: t_nounits as t, D_nounits as D, IfLifting, no_if_lift
@test operation(only(equations(ss2)).rhs) === ifelse

discvar = only(parameters(ss2))
prob2 = ODEProblem(ss2, [x => 0.0], (0.0, 5.0))
prob2 = ODEProblem(ss2, [ss2.x => 0.0], (0.0, 5.0))
sol2 = solve(prob2, Tsit5())
@test count(isapprox(pi), sol2.t) == 2
@test any(isapprox(pi), sol2.discretes[1].t)
Expand Down

0 comments on commit 001a9eb

Please sign in to comment.