Skip to content

Commit 43ee6c6

Browse files
committed
more test coverage
1 parent ffebce9 commit 43ee6c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ end
209209
(1:4, 1:3),
210210
(CartesianIndex(1, 1):CartesianIndex(4, 3), ),
211211
(CartesianIndex(1):CartesianIndex(4), CartesianIndex(1):CartesianIndex(3)),
212+
(CartesianIndex(1):CartesianIndex(4), 1:3),
212213
(IdentityUnitRange(1:4), IdentityUnitRange(1:3))
213214
]
214215
# test API
@@ -237,6 +238,7 @@ end
237238
(CartesianIndex(-1, 0):CartesianIndex(2, 2), ),
238239
(-1:2, CartesianIndex(0):CartesianIndex(2)),
239240
(CartesianIndex(-1):CartesianIndex(2), CartesianIndex(0):CartesianIndex(2)),
241+
(CartesianIndex(-1):CartesianIndex(2), 0:2),
240242
(IdentityUnitRange(-1:2), 0:2)
241243
]
242244
# test offsets
@@ -765,6 +767,8 @@ end
765767
@test reshape(OffsetArray(-1:0, -1:0), :) == OffsetArray(-1:0, -1:0)
766768
@test reshape(A, :) == reshape(A0, :)
767769

770+
@test reshape(OffsetArray(-1:0, -1:0), CartesianIndices(A0))
771+
768772
# julialang/julia #33614
769773
A = OffsetArray(-1:0, (-2,))
770774
@test reshape(A, :) === A

0 commit comments

Comments
 (0)