Skip to content

Commit 6d940cb

Browse files
committed
Also test Transpose
1 parent cb70983 commit 6d940cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/array_index.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ end
1818
@test @inferred(ArrayInterface.contiguous_axis(ArrayInterface.StrideIndex{2,(1,2),nothing,NTuple{2,Int},NTuple{2,Int}})) == nothing
1919
@test @inferred(ArrayInterface.stride_rank(ap_index)) == (1, 3)
2020

21-
let v = Float64.(1:10)'
21+
let v = Float64.(1:10)', v2 = transpose(parent(v))
2222
sv = @view(v[1:5])'
23-
ArrayInterface.StrideIndex(sv) === ArrayInterface.StrideIndex{2, (2, 1), 2}((StaticInt(1), StaticInt(1)), (StaticInt(1), StaticInt(1)))
23+
sv2 = @view(v2[1:5])'
24+
ArrayInterface.StrideIndex(sv) === ArrayInterface.StrideIndex(sv2) === ArrayInterface.StrideIndex{2, (2, 1), 2}((StaticInt(1), StaticInt(1)), (StaticInt(1), StaticInt(1)))
2425
end
2526

0 commit comments

Comments
 (0)