Skip to content

Commit 09b4854

Browse files
committed
test(core): log errors
1 parent 25cf231 commit 09b4854

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: test/runtests.jl

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ end
1010

1111
function test_linearalgrbra_functions(A::AbstractMatrix)
1212
matrix = Matrix(A)
13-
return all([
13+
result = [
1414
isdiag(A) == isdiag(matrix),
1515
ishermitian(A) == ishermitian(matrix),
1616
isposdef(A) == isposdef(matrix),
@@ -20,7 +20,13 @@ function test_linearalgrbra_functions(A::AbstractMatrix)
2020
det(A) == det(matrix),
2121
inv(A) inv(matrix),
2222
eigvals(A) eigvals(matrix),
23-
])
23+
]
24+
if all(result)
25+
return true
26+
else
27+
@error result
28+
return false
29+
end
2430
end
2531

2632
@testset "TypedMatrices.jl" begin

0 commit comments

Comments
 (0)