Skip to content

Commit d16b6ea

Browse files
committed
better test for #19265
1 parent dbbe516 commit d16b6ea

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/arrayops.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1953,5 +1953,11 @@ end
19531953
zs = zeros(SparseMatrixCSC([1 2; 3 4]), Complex{Float64}, (2,3))
19541954
test_zeros(zs, SparseMatrixCSC{Complex{Float64}}, (2, 3))
19551955

1956-
@test_throws MethodError zeros(Float64, [1.]) #19265
1956+
@testset "#19265" begin
1957+
@test_throws MethodError zeros(Float64, [1.])
1958+
x = [1.]
1959+
test_zeros(zeros(x, Float64), Vector{Float64}, (1,))
1960+
@test x == [1.]
1961+
end
1962+
19571963
end

0 commit comments

Comments
 (0)