Skip to content

Commit 2d23bac

Browse files
committed
Further tests.
1 parent 6df19ad commit 2d23bac

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/abstractarray.jl

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,18 @@ A = TSlowNIndexes(rand(2,2))
614614
@test @inferred(indices(rand(3,2), 3)) == 1:1
615615

616616
#17088
617-
let M = rand(10,10)
618-
@test !issparse([[M] [M];])
617+
let
618+
n = 10
619+
M = rand(n, n)
620+
# vector of vectors
621+
v = [[M]; [M]] # using vcat
622+
@test size(v) == (2,)
623+
@test !issparse(v)
624+
# matrix of vectors
625+
m1 = [[M] [M]] # using hcat
626+
m2 = [[M] [M];] # using hvcat
627+
@test m1 == m2
628+
@test size(m1) == (1,2)
629+
@test !issparse(m1)
630+
@test !issparse(m2)
619631
end

0 commit comments

Comments
 (0)