Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Abbott committed May 29, 2020
1 parent c003e27 commit 7d0620d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/_basic.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ using Test, AxisKeys
newaxis = [CartesianIndex{0}()]
@test axiskeys(R[[1,3],newaxis,:]) == (['a', 'c'], Base.OneTo(1), 10:10:40)

@test axiskeys(R[[3,1,1], :]) == (['c','a','a'], 10:10:40) # repeated
@test axiskeys(R(['c','a','a'], :)) == (['c','a','a'], 10:10:40)

@test_throws Exception R(:nope) # ideally ArgumentError
@test_throws Exception R('z') # ideally BoundsError?
@test_throws Exception R(99)
Expand Down

0 comments on commit 7d0620d

Please sign in to comment.