Skip to content

Commit 446d80c

Browse files
committed
Reenable IPO tests
1 parent 72b46bd commit 446d80c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/ipo.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -424,10 +424,10 @@ result = @code_structure result = true internal_variable_leaking()
424424
@test length(result.varkinds) == 4 # 2 states + their differentials
425425
@test length(result.eqkinds) == 2
426426

427-
# dae_sol = solve(DAECProblem(internal_variable_leaking, (1, 2) .=> 1.), IDA())
428-
# ode_sol = solve(ODECProblem(internal_variable_leaking, (1, 2) .=> 1.), Rodas5(autodiff=false))
429-
# for (sol, i) in Iterators.product((dae_sol, ode_sol), 1:2)
430-
# @test all(map((x,y)->isapprox(x[], y, atol=1e-2), sol[i, :], exp.(sol.t)))
431-
# end
427+
dae_sol = solve(DAECProblem(internal_variable_leaking, (1, 2) .=> 1.), IDA())
428+
ode_sol = solve(ODECProblem(internal_variable_leaking, (1, 2) .=> 1.), Rodas5(autodiff=false))
429+
for (sol, i) in Iterators.product((dae_sol, ode_sol), 1:2)
430+
@test all(map((x,y)->isapprox(x[], y, atol=1e-2), sol[i, :], exp.(sol.t)))
431+
end
432432

433433
end

0 commit comments

Comments
 (0)