Skip to content

Commit 54f3c90

Browse files
authored
Merge pull request #18722 from JuliaLang/ksh/absarraytest
Few missing tests for abstractarray
2 parents 00375b2 + 493f4e2 commit 54f3c90

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/abstractarray.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -765,3 +765,13 @@ let A17811 = Integer[]
765765
@test I == Any[1]
766766
@test isa(map(abs, A17811), Array{Any,1})
767767
end
768+
769+
#copymutable for itrs
770+
@test Base.copymutable((1,2,3)) == [1,2,3]
771+
772+
#sub2ind for empty tuple
773+
@test sub2ind(()) == 1
774+
775+
#to_shape
776+
@test Base.to_shape(()) === ()
777+
@test Base.to_shape(1) === 1

0 commit comments

Comments
 (0)