Skip to content

Commit 64cf1cb

Browse files
authored
Merge pull request #426 from JuliaArrays/ksh/convert
Test convert(::Array, ::SizedArray)
2 parents c247382 + 239c6a9 commit 64cf1cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/SizedArray.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
@test convert(Vector, SizedArray{Tuple{4}, Int, 1}(collect(3:6))) == collect(3:6)
8585
@test Matrix(SMatrix{2,2}((1,2,3,4))) == [1 3; 2 4]
8686
@test convert(Matrix, SMatrix{2,2}((1,2,3,4))) == [1 3; 2 4]
87+
@test convert(Array, SizedArray{Tuple{2,2,2,2}, Int}(ones(2,2,2,2))) == ones(2,2,2,2)
8788
# Conversion after reshaping
8889
@test_broken Array(SizedMatrix{2,2}([1,2,3,4])) == [1 3; 2 4]
8990
end

0 commit comments

Comments
 (0)