Skip to content

Commit 6d71af1

Browse files
committed
made tests work with matthias314/julia#m3/ranges-equal
1 parent 7d2dcaf commit 6d71af1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ end
254254
@test a3p[CartesianIndices(a3)] == a3
255255
@test eltype(a1p) == Int
256256
@test eltype(a3p) == Float64
257-
@test axes(a1p) == (1:3, 0:2)
258-
@test axes(a3p) == (0:2, 0:2)
257+
@test axes(a1p) == map(IdentityUnitRange, (1:3, 0:2))
258+
@test axes(a3p) == map(IdentityUnitRange, (0:2, 0:2))
259259

260260
@test @inferred(sym_paddedviews(3)) == ()
261261

@@ -361,7 +361,7 @@ end
361361
(Nothing, nothing))
362362
A = reshape(1:9, 3, 3)
363363
Ap = @inferred(PaddedView(v, A, (0:4, 0:4)))
364-
@test axes(Ap) == (OffsetArrays.IdOffsetRange(0:4), OffsetArrays.IdOffsetRange(0:4))
364+
@test axes(Ap) == map(IdentityUnitRange, (0:4, 0:4))
365365
@test eltype(Ap) === Union{T, eltype(A)}
366366
@test Ap[0, 0] === v
367367
@test Ap[1, 1] === 1

0 commit comments

Comments
 (0)