Skip to content

Commit 830ea2f

Browse files
authored
Fit broken matmul test (#1288)
Since `similar` returns uninitialized memory, there is not reason to expect the two invocations to return the same values. The broken test caused https://buildkite.com/julialang/linearalgebra-dot-jl/builds/517#0196337d-14ef-4846-be5c-85e92f72fd23/203-354
1 parent 222f7f2 commit 830ea2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/matmul.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,8 +1217,8 @@ end
12171217
A = ones(2,2)
12181218
S = Symmetric(ones(2,2))
12191219
@test mul!(similar(A), S, A, big(1), big(0)) S * A
1220-
C1 = mul!(similar(A), S, A, big(2), big(1))
1221-
C2 = mul!(similar(A), S, A, 2, 1)
1220+
C1 = mul!(one(A), S, A, big(2), big(1))
1221+
C2 = mul!(one(A), S, A, 2, 1)
12221222
@test C1 C2
12231223
end
12241224

0 commit comments

Comments
 (0)