Skip to content

Commit 107040d

Browse files
committed
test: add test that fails on incorrect reshape dims ordering
1 parent 2e891ac commit 107040d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/ops.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ end
521521
@testset "reshape" begin
522522
x = ConcreteRArray([1, 2, 3, 4])
523523
@test reshape(Array(x), 2, 2) == @jit Ops.reshape(x, 2, 2)
524+
525+
x = ConcreteRArray(collect(reshape(1:12, 2, 2, 3)))
526+
@test reshape(Array(x), 3, 1, 4) == @jit Ops.reshape(x, 3, 1, 4)
524527
end
525528

526529
@testset "reverse" begin

0 commit comments

Comments
 (0)