diff --git a/test/runtests.jl b/test/runtests.jl index 99f1b85d6..3c6b6092d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -347,19 +347,27 @@ end # qr, qrfact, qrfact! let A = [1.0 2.0; 3.0 4.0] - Q, R = qr(A, Val(false)) + # The constructor for qr changed to take Val{x} instead of Type{Val{x}} + if VERSION < v"0.7.0-DEV.843" + valtrue = Val{true} + valfalse = Val{false} + else + valtrue = Val(true) + valfalse = Val(false) + end + Q, R = qr(A, valfalse) @test Q*R ≈ A - Q, R, p = qr(A, Val(true)) + Q, R, p = qr(A, valtrue) @test Q*R ≈ A[:,p] - F = qrfact(A, Val(false)) + F = qrfact(A, valfalse) @test F[:Q]*F[:R] ≈ A - F = qrfact(A, Val(true)) + F = qrfact(A, valtrue) @test F[:Q]*F[:R] ≈ A[:,F[:p]] A_copy = copy(A) - F = qrfact!(A_copy, Val(false)) + F = qrfact!(A_copy, valfalse) @test F[:Q]*F[:R] ≈ A A_copy = copy(A) - F = qrfact!(A_copy, Val(true)) + F = qrfact!(A_copy, valtrue) @test F[:Q]*F[:R] ≈ A[:,F[:p]] end