We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cf231 commit 09b4854Copy full SHA for 09b4854
test/runtests.jl
@@ -10,7 +10,7 @@ end
10
11
function test_linearalgrbra_functions(A::AbstractMatrix)
12
matrix = Matrix(A)
13
- return all([
+ result = [
14
isdiag(A) == isdiag(matrix),
15
ishermitian(A) == ishermitian(matrix),
16
isposdef(A) == isposdef(matrix),
@@ -20,7 +20,13 @@ function test_linearalgrbra_functions(A::AbstractMatrix)
20
det(A) == det(matrix),
21
inv(A) ≈ inv(matrix),
22
eigvals(A) ≈ eigvals(matrix),
23
- ])
+ ]
24
+ if all(result)
25
+ return true
26
+ else
27
+ @error result
28
+ return false
29
+ end
30
end
31
32
@testset "TypedMatrices.jl" begin
0 commit comments