Skip to content

Commit f9ca631

Browse files
committed
fix tcov
1 parent aa19103 commit f9ca631

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/basictests.jl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ 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, sprand(n, n, 0.8))
98-
y2 = solve(cache) # we just need to know this doesn't fail.
97+
X = sprand(sprand(n, n, 0.8))
98+
cache = LinearSolve.set_A(cache, X)
99+
@test X * solve(cache) b1
99100
end
100101

101102
@testset "KLU Factorization" begin
@@ -114,8 +115,9 @@ end
114115
# Test that refactoring wrong is checked and handled.
115116
cache = SciMLBase.init(prob1, KLUFactorization(); cache_kwargs...) # initialize cache
116117
y = solve(cache)
117-
cache = LinearSolve.set_A(cache, sprand(n, n, 0.8))
118-
y2 = solve(cache)
118+
X = sprand(sprand(n, n, 0.8))
119+
cache = LinearSolve.set_A(cache, X)
120+
@test X * solve(cache) b1
119121
end
120122

121123
@testset "FastLAPACK Factorizations" begin

0 commit comments

Comments
 (0)