Skip to content

Commit

Permalink
Simplify SubArray logical indexing test
Browse files Browse the repository at this point in the history
  • Loading branch information
magistere committed Nov 10, 2013
1 parent 7b42782 commit 0bebf37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ sA = sub(A, 1:2:3, 1:3:5, 1:2:8)

# sub logical indexing #4763
A = sub([1:10], 5:8)
idx = map(x -> x < 7, A)
@test A[idx] == [5, 6]
@test A[A.<7] == [5, 6]

# slice
A = reshape(1:120, 3, 5, 8)
Expand Down

0 comments on commit 0bebf37

Please sign in to comment.