Skip to content

Commit

Permalink
test: fix DimensionMismatch for triangular
Browse files Browse the repository at this point in the history
  • Loading branch information
inkydragon committed Jan 23, 2025
1 parent 10d12f1 commit 9e09fd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/triangular.jl
Original file line number Diff line number Diff line change
Expand Up @@ -904,12 +904,12 @@ end
A = UpperTriangular(ones(T,2,2))
B = ones(T,3,3)
C = similar(B)
@test_throws "incompatible dimensions for matrix multiplication" mul!(C, A, B)
@test_throws "incompatible dimensions for matrix multiplication" mul!(C, B, A)
@test_throws DimensionMismatch mul!(C, A, B)
@test_throws DimensionMismatch mul!(C, B, A)
B = Array(A)
C = similar(B, (4,4))
@test_throws "incompatible destination size" mul!(C, A, B)
@test_throws "incompatible destination size" mul!(C, B, A)
@test_throws DimensionMismatch mul!(C, A, B)
@test_throws DimensionMismatch mul!(C, B, A)
end
end

Expand Down

0 comments on commit 9e09fd5

Please sign in to comment.