Skip to content

Commit f78a880

Browse files
committed
Add comments on what is being tested
1 parent 2bac113 commit f78a880

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/basictests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ function test_interface(alg, prob1, prob2)
4343
sol = solve(prob2, alg; cache_kwargs...)
4444
@test A2 * sol.u b2
4545

46+
# Test cache resue: base mechanism
4647
cache = SciMLBase.init(prob1, alg; cache_kwargs...) # initialize cache
4748
sol = solve!(cache)
4849
@test A1 * sol.u b1
50+
51+
# Test cache resue: only A changes
4952
cache.A = deepcopy(A2)
5053
sol = solve!(cache; cache_kwargs...)
5154
@test A2 * sol.u b1
@@ -55,6 +58,7 @@ function test_interface(alg, prob1, prob2)
5558
cache.b = b2
5659
sol = solve!(cache; cache_kwargs...)
5760
@test A2 * sol.u b2
61+
5862
return
5963
end
6064

0 commit comments

Comments
 (0)