Skip to content

Commit

Permalink
test(core): test eigvals on or after v1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 8, 2024
1 parent fc5f9d0 commit 14c99a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ function test_linearalgrbra_functions(A::AbstractMatrix)
adjoint => adjoint(A) adjoint(matrix),
transpose => transpose(A) transpose(matrix),
det => det(A) == determinant,
eigvals => eigvals(A) eigvals(matrix),
])

# https://github.com/JuliaLang/julia/issues/55404
if VERSION >= v"1.10"
result[isposdef] = isposdef(A) == isposdef(matrix)
result[eigvals] = eigvals(A) eigvals(matrix)

if determinant != 0
result[inv] = inv(A) inv(matrix)
Expand Down

0 comments on commit 14c99a0

Please sign in to comment.