Skip to content

Commit 9b7d56a

Browse files
restore a test
1 parent 0fbdc28 commit 9b7d56a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/OffsetArrays.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ parentindex(r::IdOffsetRange, i) = i - r.offset
415415

416416
@propagate_inbounds Base.getindex(A::OffsetArray{<:Any,0}) = A.parent[]
417417

418-
@inline function Base.getindex(A::OffsetArray{<:Any,N}, I::Vararg{Integer,N}) where N
418+
@inline function Base.getindex(A::OffsetArray{<:Any,N}, I::Vararg{Int,N}) where N
419419
@boundscheck checkbounds(A, I...)
420420
J = map(parentindex, axes(A), I)
421421
@inbounds parent(A)[J...]

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ Base.Int(a::WeirdInteger) = a
859859

860860
# should throw a TypeError if the offsets can not be converted to Ints
861861
# this test does not work anymore?
862-
# @test_throws TypeError OffsetVector{Int,Vector{Int}}(zeros(Int,2), (WeirdInteger(1),))
862+
@test_throws TypeError OffsetVector{Int,Vector{Int}}(zeros(Int,2), (WeirdInteger(1),))
863863
end
864864

865865
@testset "custom range types" begin

0 commit comments

Comments
 (0)