From 8c160df742fe71fed6f36be8a0b3bdf489ce6279 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Mon, 5 Aug 2024 13:37:55 +0200 Subject: [PATCH] Run `SymTridiagonal` tests only on Julia >= 1.8 --- test/pdmtypes.jl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/test/pdmtypes.jl b/test/pdmtypes.jl index ab4bac1..2d44b80 100644 --- a/test/pdmtypes.jl +++ b/test/pdmtypes.jl @@ -305,11 +305,14 @@ using Test @test C - B ≈ Matrix(C) - Matrix(B) end - # https://github.com/JuliaStats/PDMats.jl/pull/207 - @testset "PDMat from SymTridiagonal" begin - S = SymTridiagonal(fill(4, 4), fill(1, 3)) - M = @inferred(PDMat(S)) - @test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky} - @test M == S + # Ref https://github.com/JuliaStats/PDMats.jl/pull/207 + # Note: `cholesky(::SymTridiagonal)` requires https://github.com/JuliaLang/julia/pull/44076 + if VERSION >= v"1.8.0-DEV.1526" + @testset "PDMat from SymTridiagonal" begin + S = SymTridiagonal(fill(4, 4), fill(1, 3)) + M = @inferred(PDMat(S)) + @test M isa PDMat{Int,<:SymTridiagonal,<:Cholesky} + @test M == S + end end end