Skip to content

Commit

Permalink
Few missing tests for abstractarray
Browse files Browse the repository at this point in the history
(cherry picked from commit 493f4e2)
ref #18722
  • Loading branch information
kshyatt authored and tkelman committed Feb 22, 2017
1 parent 76249b1 commit 35f7fcb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/abstractarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -758,3 +758,13 @@ let A17811 = Integer[]
@test I == Any[1]
@test isa(map(abs, A17811), Array{Any,1})
end

#copymutable for itrs
@test Base.copymutable((1,2,3)) == [1,2,3]

#sub2ind for empty tuple
@test sub2ind(()) == 1

#to_shape
@test Base.to_shape(()) === ()
@test Base.to_shape(1) === 1

0 comments on commit 35f7fcb

Please sign in to comment.