From 6d71af1db6142cb6c2e569750ee4eecdc0a4fed8 Mon Sep 17 00:00:00 2001 From: matthias314 Date: Sun, 23 Jun 2024 14:27:01 -0400 Subject: [PATCH] made tests work with matthias314/julia#m3/ranges-equal --- test/runtests.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 50d0aab..6fcf568 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -254,8 +254,8 @@ end @test a3p[CartesianIndices(a3)] == a3 @test eltype(a1p) == Int @test eltype(a3p) == Float64 - @test axes(a1p) == (1:3, 0:2) - @test axes(a3p) == (0:2, 0:2) + @test axes(a1p) == map(IdentityUnitRange, (1:3, 0:2)) + @test axes(a3p) == map(IdentityUnitRange, (0:2, 0:2)) @test @inferred(sym_paddedviews(3)) == () @@ -361,7 +361,7 @@ end (Nothing, nothing)) A = reshape(1:9, 3, 3) Ap = @inferred(PaddedView(v, A, (0:4, 0:4))) - @test axes(Ap) == (OffsetArrays.IdOffsetRange(0:4), OffsetArrays.IdOffsetRange(0:4)) + @test axes(Ap) == map(IdentityUnitRange, (0:4, 0:4)) @test eltype(Ap) === Union{T, eltype(A)} @test Ap[0, 0] === v @test Ap[1, 1] === 1