Skip to content

Commit

Permalink
Add a test for the ambiguous case
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Nov 7, 2016
1 parent 91d28bd commit 3009d49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/linalg/symmetric.jl
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ let X = sparse([1 -1; -1 1])
@test Y - 1 == T(sparse([0 -2; -2 0]))
@test Y * 2 == T(sparse([2 -2; -2 2]))
@test Y / 1 == Y

@test T([true false; false true]) + true == T([2 1; 1 2])
end

@test_throws ArgumentError Hermitian(X) + 2im*I
Expand Down

0 comments on commit 3009d49

Please sign in to comment.