Skip to content

Commit 1f9dd2c

Browse files
authored
Test eltype and size
1 parent 5ff1d83 commit 1f9dd2c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/abstractarray.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,12 +1445,12 @@ using Base: typed_hvncat
14451445

14461446
# zero-value behaviors for int form above dimension zero
14471447
# e.g. [;;], [;;;], though that isn't valid syntax
1448-
@test hvncat(1) == []
1449-
@test hvncat(2) == Array{Int, 2}(undef, 0, 0)
1450-
@test Array{Int, 3}(undef, 0, 0, 0) == hvncat(3) isa Array{Int, 3}
1451-
@test typed_hvncat(Int, 1) == []
1452-
@test typed_hvncat(Int, 2) == Array{Int, 2}(undef, 0, 0)
1453-
@test typed_hvncat(Int, 3) == Array{Int, 3}(undef, 0, 0, 0)
1448+
@test [] == hvncat(1) isa Array{Any, 1}
1449+
@test Array{Any, 2}(undef, 0, 0, 0) == hvncat(2) isa Array{Any, 2}
1450+
@test Array{Any, 3}(undef, 0, 0, 0) == hvncat(3) isa Array{Any, 3}
1451+
@test Int[] == typed_hvncat(Int, 1) isa Array{Int, 1}
1452+
@test Array{Int, 2}(undef, 0, 0) == typed_hvncat(Int, 2) isa Array{Int, 2}
1453+
@test Array{Int, 3}(undef, 0, 0, 0) == typed_hvncat(Int, 3) isa Array{Int, 3}
14541454
end
14551455

14561456
@testset "keepat!" begin

0 commit comments

Comments
 (0)