Skip to content

Commit bf9443f

Browse files
authored
Added test for map over ArrayPartition.
1 parent 673bf96 commit bf9443f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/partitions_test.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ _broadcast_wrapper(y) = _scalar_op.(y)
103103
# Issue #8
104104
# @inferred _broadcast_wrapper(x)
105105

106+
# Testing map
107+
@test map(x->x^2, x) == ArrayPartition(x.x[1].^2, x.x[2].^2)
108+
106109
#### testing copyto!
107110
S = [
108111
((1,),(2,)) => ((1,),(2,)),

0 commit comments

Comments
 (0)