Skip to content

Commit

Permalink
remove misleading comment (#46458)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Aug 24, 2022
1 parent f0b5556 commit c876894
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions test/numbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2345,12 +2345,6 @@ end
end
end
@testset "getindex error throwing" begin
#getindex(x::Number,-1) throws BoundsError
#getindex(x::Number,0) throws BoundsError
#getindex(x::Number,2) throws BoundsError
#getindex(x::Array,-1) throws BoundsError
#getindex(x::Array,0 throws BoundsError
#getindex(x::Array,length(x::Array)+1) throws BoundsError
for x in [1.23, 7, ℯ, 4//5] #[FP, Int, Irrational, Rat]
@test_throws BoundsError getindex(x,-1)
@test_throws BoundsError getindex(x,0)
Expand Down

0 comments on commit c876894

Please sign in to comment.