Skip to content

Commit 94d9934

Browse files
committed
fix the tests
1 parent d263342 commit 94d9934

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/interface/ode_strip_test.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ vern_sol = solve(prob, Vern7())
2121
end
2222

2323
@testset "Rosenbrock Solution Stripping" begin
24-
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol).prob)
25-
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol).alg)
24+
@test SciMLBase.strip_solution(rosenbrock_sol).prob.f isa SciMLBase.NullODEFunction
25+
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol, strip_alg = true).alg)
2626
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol).interp.f)
2727
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol).interp.cache.jac_config)
2828
@test isnothing(SciMLBase.strip_solution(rosenbrock_sol).interp.cache.grad_config)
@@ -31,8 +31,8 @@ end
3131
end
3232

3333
@testset "TRBDF Solution Stripping" begin
34-
@test isnothing(SciMLBase.strip_solution(TRBDF_sol).prob)
35-
@test isnothing(SciMLBase.strip_solution(TRBDF_sol).alg)
34+
@test SciMLBase.strip_solution(TRBDF_sol).prob.f isa SciMLBase.NullODEFunction
35+
@test isnothing(SciMLBase.strip_solution(TRBDF_sol, strip_alg = true).alg)
3636
@test isnothing(SciMLBase.strip_solution(TRBDF_sol).interp.f)
3737
@test isnothing(SciMLBase.strip_solution(TRBDF_sol).interp.cache.nlsolver)
3838
end

0 commit comments

Comments
 (0)