|
209 | 209 | (1:4, 1:3),
|
210 | 210 | (CartesianIndex(1, 1):CartesianIndex(4, 3), ),
|
211 | 211 | (CartesianIndex(1):CartesianIndex(4), CartesianIndex(1):CartesianIndex(3)),
|
| 212 | + (CartesianIndex(1):CartesianIndex(4), 1:3), |
212 | 213 | (IdentityUnitRange(1:4), IdentityUnitRange(1:3))
|
213 | 214 | ]
|
214 | 215 | # test API
|
|
237 | 238 | (CartesianIndex(-1, 0):CartesianIndex(2, 2), ),
|
238 | 239 | (-1:2, CartesianIndex(0):CartesianIndex(2)),
|
239 | 240 | (CartesianIndex(-1):CartesianIndex(2), CartesianIndex(0):CartesianIndex(2)),
|
| 241 | + (CartesianIndex(-1):CartesianIndex(2), 0:2), |
240 | 242 | (IdentityUnitRange(-1:2), 0:2)
|
241 | 243 | ]
|
242 | 244 | # test offsets
|
|
765 | 767 | @test reshape(OffsetArray(-1:0, -1:0), :) == OffsetArray(-1:0, -1:0)
|
766 | 768 | @test reshape(A, :) == reshape(A0, :)
|
767 | 769 |
|
| 770 | + @test reshape(OffsetArray(-1:0, -1:0), CartesianIndices(A0)) |
| 771 | + |
768 | 772 | # julialang/julia #33614
|
769 | 773 | A = OffsetArray(-1:0, (-2,))
|
770 | 774 | @test reshape(A, :) === A
|
|
0 commit comments