Skip to content

Commit ed26db8

Browse files
committed
Fix test errors on Julia 1.0
1 parent cc40cf4 commit ed26db8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/runtests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
using Test
1+
using Test
22
import RecursiveFactorization
33
import LinearAlgebra
4+
using LinearAlgebra: norm
5+
using Random
6+
7+
Random.seed!(12)
48

59
baselu = LinearAlgebra.lu
610
mylu = RecursiveFactorization.lu
711

812
function testlu(A, MF, BF)
913
@test MF.info == BF.info
10-
@test MF.L*MF.U A[MF.p, :]
14+
@test norm(MF.L*MF.U - A[MF.p, :], Inf) < sqrt(eps(real(first(A))))
1115
nothing
1216
end
1317

0 commit comments

Comments
 (0)