diff --git a/test/sparsedir/sparse.jl b/test/sparsedir/sparse.jl index 0d26331d1cccb9..6732e2427d6ed0 100644 --- a/test/sparsedir/sparse.jl +++ b/test/sparsedir/sparse.jl @@ -1282,3 +1282,17 @@ let @test issparse(UpperTriangular(full(m))) == false @test issparse(LinAlg.UnitUpperTriangular(full(m))) == false end + +# dense sparse concatenation -> sparse return type +@test issparse([sprand(10,10,.1) rand(10,10)]) +@test issparse([sprand(10,10,.1); rand(10,10)]) +@test issparse([sprand(10,10,.1) rand(10,10); rand(10,10) rand(10,10)]) +#--- +# Matrix vector cat not supported for sparse #13130 +#@test issparse([sprand(10,10,.1) rand(10)]) +#@test issparse([sprand(10,10,.1) sprand(10,.1)]) +# --- +@test !issparse([rand(10,10) rand(10,10)]) +@test !issparse([rand(10,10); rand(10,10)]) +@test !issparse([rand(10,10) rand(10,10); rand(10,10) rand(10,10)]) +