Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Abbott committed Mar 16, 2020
1 parent 214431c commit d45b2d6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ end
m = rand(3,4) .> 0.5 # BitArray{2}
@test size(x[m]) == (sum(m),)

# indexing a view, https://github.com/JuliaArrays/AxisArrays.jl/issues/179
v = view(x, :, 1:2)
b = rand(6) .> 0.5 # BitArray{1}
@test length(v[b]) == sum(b)
@test length(view(v, b)) == sum(b)
m = rand(3,2) .> 0.5 # BitArray{2}
@test size(v[m]) == (sum(m),)
@test size(view(v, m)) == (sum(m),)

end
@testset "mutation" begin

Expand Down

0 comments on commit d45b2d6

Please sign in to comment.