Skip to content

Commit 83689bb

Browse files
committed
test(matrices): fix error at Julia 1.6
not testing `isposdef` and `inv` before v1.10 See-Also: JuliaLang/julia#55404
1 parent 9c86eea commit 83689bb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/runtests.jl

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ function test_linearalgrbra_functions(A::AbstractMatrix)
2222
eigvals => eigvals(A) eigvals(matrix),
2323
])
2424

25+
# https://github.com/JuliaLang/julia/issues/55404
26+
if VERSION >= v"1.10"
27+
result[isposdef] = isposdef(A) == isposdef(matrix)
28+
result[inv] = inv(A) inv(matrix)
29+
end
30+
2531
if all(values(result))
2632
return true
2733
else

0 commit comments

Comments
 (0)