Skip to content

Commit b225dcd

Browse files
committed
Test ComplexF64, ComplexF32, Float32, and Float64
1 parent 7d7bdf7 commit b225dcd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/runtests.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ mylu = RecursiveFactorization.lu
77

88
function testlu(A, MF, BF)
99
@test MF.info == BF.info
10-
@test MF.P == BF.P
1110
@test MF.L*MF.U A[MF.p, :]
1211
nothing
1312
end
1413

1514
@testset "Test LU factorization" begin
16-
for p in (Val(true), Val(false))
17-
A = rand(100, 100)
15+
for p in (Val(true), Val(false)), T in (Float64, Float32, ComplexF64, ComplexF32)
16+
A = rand(T, 100, 100)
1817
MF = mylu(A, p)
1918
BF = baselu(A, p)
2019
testlu(A, MF, BF)

0 commit comments

Comments
 (0)