Skip to content

Commit fb35874

Browse files
committed
test
1 parent 0daa1eb commit fb35874

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/ops.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,15 @@ end
11381138
@test fr!(vr) f!(v)
11391139
end
11401140

1141+
fn_test_wrap(x) = Reactant.Ops.wrap(x, 2, 1; dimension=3)
1142+
1143+
@testset "Ops.wrap" begin
1144+
x = Reactant.to_rarray(rand(2, 3, 4, 5))
1145+
out = @jit fn_test_wrap(x)
1146+
1147+
@test size(out) == (2, 3, 7, 5)
1148+
end
1149+
11411150
@testset "Ops.fill" begin
11421151
@testset "Fill with TracedScalar" begin
11431152
fn(x) = Ops.fill(x, [2, 3])

0 commit comments

Comments
 (0)