From 06ccfca3f3d3755b7aadf6fd7e255ec1e34128aa Mon Sep 17 00:00:00 2001 From: Lyndon White Date: Fri, 18 Sep 2020 13:00:36 +0100 Subject: [PATCH] test that we handle issparse on subarrays right --- stdlib/SparseArrays/test/sparse.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/SparseArrays/test/sparse.jl b/stdlib/SparseArrays/test/sparse.jl index 148c712591dc5..4c6ca81127129 100644 --- a/stdlib/SparseArrays/test/sparse.jl +++ b/stdlib/SparseArrays/test/sparse.jl @@ -2166,6 +2166,7 @@ end @test issparse(UpperTriangular(Array(m))) == false @test issparse(LinearAlgebra.UnitUpperTriangular(Array(m))) == false @test issparse(Base.ReshapedArray(m, (20, 5), ())) + @test issparse(@view m[1:3, :]) # greater nesting @test issparse(Symmetric(UpperTriangular(m)))