Skip to content

Commit 56d561c

Browse files
jishnubpull[bot]
authored andcommitted
update the OffsetArray test helper
1 parent 5f3c369 commit 56d561c

File tree

2 files changed

+714
-132
lines changed

2 files changed

+714
-132
lines changed

test/offsetarray.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using Random
77
using LinearAlgebra
88
using Statistics
99
using Base: IdentityUnitRange
10+
using Test
1011

1112
if !isdefined(@__MODULE__, :T24Linear)
1213
include("testhelpers/arrayindexingtypes.jl")
@@ -243,7 +244,7 @@ targets2 = ["(fill(1.0), fill(1.0))",
243244
end
244245
P = OffsetArray(rand(8,8), (1,1))
245246
PV = view(P, 2:3, :)
246-
@test endswith(summary(PV), "with indices Base.OneTo(2)×OffsetArrays.IdOffsetRange(2:9)")
247+
@test endswith(summary(PV), "with indices Base.OneTo(2)×$(repr(axes(P,2)))")
247248

248249
# Similar
249250
B = similar(A, Float32)

0 commit comments

Comments
 (0)