Skip to content

Commit df0c00e

Browse files
add test of copying
1 parent 0994cf8 commit df0c00e

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
@@ -4,6 +4,9 @@ A = (rand(5),rand(5))
44
p = ArrayPartition(A)
55
@test (p.x[1][1],p.x[2][1]) == (p[1],p[6])
66

7+
p = ArrayPartition(A,Val{true})
8+
@test !(p.x[1] === A[1])
9+
710
p2 = similar(p)
811
p2[1] = 1
912
@test p2.x[1] != p.x[1]

0 commit comments

Comments
 (0)