Skip to content

Commit

Permalink
Few missing tests for abstractarray
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Sep 29, 2016
1 parent e05f6a1 commit 493f4e2
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 @@ -765,3 +765,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 493f4e2

Please sign in to comment.