Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Nov 3, 2023
1 parent 89a7654 commit e746338
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/interface/type_handling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ f(u, p, t) = u
u0(p, t0) = ones(2)
prob = ODEProblem(f, u0, (0.0, 1.0))
sol = solve(prob, Tsit5())

# test different u and t type
ode_f(du, u, p, t) = du[1] = -u[1]
# autospecialize broken for the next 35 minutes
prob = ODEProblem(ODEFunction{true, SciMLBase.FullSpecialize()}(ode_f), [1f0], (0.0,1.0))
solve(prob, Rodas5P())

0 comments on commit e746338

Please sign in to comment.