Skip to content

Commit

Permalink
remove inbounds check
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Dec 8, 2022
1 parent 03fb80c commit 982011b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,6 @@ end
end
A = Ones{Int}(6)
@test reverse(A, 2, 4) == reverse(Array(A), 2, 4)
#test bounds-cheking elision
@test (A -> @inbounds reverse(A, 2, 10))(A) == A
@test_throws BoundsError reverse(A, 1, 10)
end

Expand Down

0 comments on commit 982011b

Please sign in to comment.