Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 10, 2024
1 parent df3446f commit e1f2f3a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ end
"Cannot sum or substract matrices of axes `$(axes(A))` and `$(axes(B))` into a matrix of axes `$(axes(output))`, expected axes `$(axes(B))`.",
)
@test_throws err MA.operate_to!(output, +, A, B)
err = DimensionMismatch(
"Cannot sum or substract a matrix of axes `$(axes(A))` into a matrix of axes `$(axes(output))`, expected axes `$(axes(A))`.",
)
@test_throws err MA.operate_to!(output, +, A)
@test_throws err MA.operate_to!(output, -, A)
end
@testset "unsupported_product" begin
unsupported_product()
Expand Down

0 comments on commit e1f2f3a

Please sign in to comment.