Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Mar 24, 2024
1 parent 2481775 commit 55cc9a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,11 @@ end
@test MA.mul(A, x) == BigInt[3; 3; 3]
@test MA.mul_to!!(y, A, x) == BigInt[3; 3; 3] && y == BigInt[3; 3; 3]
@test_throws DimensionMismatch MA.mul(BigInt[1 1; 1 1], BigInt[])
@test_throws DimensionMismatch MA.mul_to!!(
BigInt[],
BigInt[1 1; 1 1],
BigInt[1; 1],
)
@test MA.mul_to!!(BigInt[], BigInt[1 1; 1 1], BigInt[1; 1]) ==
BigInt[2, 2]
z = BigInt[0, 0]
@test MA.mul_to!!(z, BigInt[1 1; 1 1], BigInt[1; 1]) === z
@test z == BigInt[2, 2]

@testset "mutability" begin
alloc_test(() -> MA.promote_operation(*, typeof(A), typeof(x)), 0)
Expand Down

0 comments on commit 55cc9a9

Please sign in to comment.