Skip to content

Commit ac56a49

Browse files
committed
more tests
1 parent 5253b48 commit ac56a49

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/partitions_test.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ x = ArrayPartition([1, 2], [3.0, 4.0])
2929
@inferred(similar(x, (2, 2)))
3030
@test_broken @inferred(similar(x, Int, (2, 2)))
3131
@test_broken @inferred(similar(x, (Int, Float64), (2, 2)))
32+
33+
_scalar_op(y) = y + 1
34+
# Can't do `@inferred(_scalar_op.(x))` so we wrap that in a function:
35+
_broadcast_wrapper(y) = _scalar_op.(y)
36+
# Issue #8
37+
@inferred(_broadcast_wrapper(x))

0 commit comments

Comments
 (0)