Skip to content

Commit ebfd48d

Browse files
committed
better tests
1 parent aa807af commit ebfd48d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/downstream/ode_stripping.jl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ prob = ODEProblem(lorenz!, u0, tspan)
1212
# implicit solver so we can test cache stripping worked
1313
sol = solve(prob, Rosenbrock23())
1414

15-
@test SciMLBase.strip_solution(sol).prob.f isa ODENullFunction
15+
stripped_sol = SciMLBase.strip_solution(sol)
16+
17+
@test stripped_sol.prob.f isa ODENullFunction
1618

1719
@test isnothing(SciMLBase.strip_solution(sol, strip_alg = true).alg)
1820

19-
@test isnothing(SciMLBase.strip_solution(sol).interp.f)
21+
@test isnothing(stripped_sol.interp.f)
22+
23+
@test isnothing(stripped_sol.interp.cache.jac_config)
2024

21-
@test isnothing(SciMLBase.strip_solution(sol).interp.cache.jac_config)
25+
@test isnothing(stripped_sol.interp.cache.grad_config)
2226

23-
@test isnothing(SciMLBase.strip_solution(sol).interp.cache.grad_config)
27+
@test stripped_sol(0.45) isa Number

0 commit comments

Comments
 (0)