diff --git a/test/abstractarray.jl b/test/abstractarray.jl index 178f2863690ffe..9bdc94ab631ca4 100644 --- a/test/abstractarray.jl +++ b/test/abstractarray.jl @@ -563,6 +563,10 @@ function test_cat(::Type{TestAbstractArray}) # 18395 @test isa(Any["a" 5; 2//3 1.0][2,1], Rational{Int}) + + # 13665, 19038 + @test @inferred(hcat([1.0 2.0], 3))::Array{Float64,2} == [1.0 2.0 3.0] + @test @inferred(vcat([1.0, 2.0], 3))::Array{Float64,1} == [1.0, 2.0, 3.0] end function test_ind2sub(::Type{TestAbstractArray}) diff --git a/test/sparse/sparse.jl b/test/sparse/sparse.jl index 61596370f8bcfc..67d400dca329a1 100644 --- a/test/sparse/sparse.jl +++ b/test/sparse/sparse.jl @@ -1659,3 +1659,6 @@ let X = sparse([1 -1; -1 1]) @test Y / 1 == Y end end + +# 19304 +@inferred hcat(sparse(rand(3,4)), eye(3,3))