Skip to content

Commit 46ae4dd

Browse files
committed
attempt to test some more codepaths
1 parent 8f71149 commit 46ae4dd

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
@@ -94,6 +94,8 @@ end
9494
# Test that refactoring is checked and handled.
9595
cache = SciMLBase.init(prob1, UMFPACKFactorization(); cache_kwargs...) # initialize cache
9696
y = solve(cache)
97+
cache = LinearSolve.set_A(cache, A2)
98+
@test A2 * solve(cache) b1
9799
X = sprand(n, n, 0.8)
98100
cache = LinearSolve.set_A(cache, X)
99101
@test X * solve(cache) b1
@@ -115,6 +117,8 @@ end
115117
# Test that refactoring wrong is checked and handled.
116118
cache = SciMLBase.init(prob1, KLUFactorization(); cache_kwargs...) # initialize cache
117119
y = solve(cache)
120+
cache = LinearSolve.set_A(cache, A2)
121+
@test A2 * solve(cache) b1
118122
X = sprand(n, n, 0.8)
119123
cache = LinearSolve.set_A(cache, X)
120124
@test X * solve(cache) b1

0 commit comments

Comments
 (0)