Skip to content

Commit 3bd5c5c

Browse files
lostellamohamed82008
authored andcommitted
test fix
1 parent 49cc093 commit 3bd5c5c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/stationary.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ import IterativeSolvers: DiagonalIndices, FastLowerTriangular,
55

66
using IterativeSolvers
77
using Test
8+
using Random
9+
using LinearAlgebra
810
using SparseArrays
911

1012
@testset "Stationary solvers" begin
1113

1214
n = 10
1315
m = 6
1416
ω = 1.2
15-
srand(1234321)
17+
srand(1234322)
1618

1719
@testset "SparseMatrix{$T}" for T in (Float32, Float64, ComplexF32, ComplexF64)
1820
@testset "Sparse? $sparse" for sparse = (true, false)
@@ -44,7 +46,7 @@ srand(1234321)
4446

4547
for solver in (sor!, ssor!)
4648
xi = solver(copy(x0), A, b, ω, maxiter=2n)
47-
@test norm(b - A * xi) / norm(b) 10*tol
49+
@test norm(b - A * xi) / norm(b) tol
4850
end
4951
end
5052
end

0 commit comments

Comments
 (0)