diff --git a/test/linalg/symmetric.jl b/test/linalg/symmetric.jl index 0d6b8119cb87a..7881552e59063 100644 --- a/test/linalg/symmetric.jl +++ b/test/linalg/symmetric.jl @@ -151,6 +151,17 @@ end @test trace(aherm) == trace(Hermitian(aherm)) end + @testset "isposdef[!]" begin + @test isposdef(Symmetric(asym)) == isposdef(asym) + @test isposdef(Hermitian(aherm)) == isposdef(aherm) + @test isposdef(Hermitian(apos)) == isposdef(apos) == true + if eltya != Int #chol! won't work with Int + @test isposdef!(Symmetric(copy(asym))) == isposdef(asym) + @test isposdef!(Hermitian(copy(aherm))) == isposdef(aherm) + @test isposdef!(Hermitian(copy(apos))) == isposdef(apos) == true + end + end + # Revisit when implemented in julia if eltya != BigFloat @testset "cond" begin @@ -252,15 +263,6 @@ end end end end - - @testset "isposdef[!]" begin - @test isposdef(Symmetric(asym)) == isposdef(full(Symmetric(asym))) - @test isposdef(Hermitian(aherm)) == isposdef(full(Hermitian(aherm))) - if eltya != Int #chol! won't work with Int - @test isposdef!(Symmetric(copy(asym))) == isposdef(full(Symmetric(asym))) - @test isposdef!(Hermitian(copy(aherm))) == isposdef(full(Hermitian(aherm))) - end - end end @testset "linalg binary ops" begin