Skip to content

Commit

Permalink
test: remove unnecessary unwrapping text
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jun 6, 2024
1 parent 2bbb786 commit 114ad0b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions test/downstream/unwrapping.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ prob = ODEProblem(f, [x], tspan)
integ = init(prob, Tsit5(), dt = 0.1)
@test integ.f.f === f

tspan = (ForwardDiff.Dual(0.0, (0.01)), ForwardDiff.Dual(1.0, (0.01)))
prob = ODEProblem(f, [x], tspan)

# Should not error during problem construction but should be unwrapped
integ = init(prob, Tsit5(), dt = 0.1)
@test integ.f.f === f

# Handle functional initial conditions
prob = ODEProblem((dx, x, p, t) -> (dx .= 0), (p, t) -> zeros(2), (0, 10))
solve(prob, TRBDF2())

0 comments on commit 114ad0b

Please sign in to comment.