Skip to content

Commit 854f936

Browse files
committed
add colon test
1 parent a9015a4 commit 854f936

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/arrayops.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,5 +2975,7 @@ end
29752975
@test K == b
29762976
K[3,1:3] += zeros(3)
29772977
@test K == b
2978+
K[3,:] += zeros(3,1)
2979+
@test K == b
29782980
@test_throws DimensionMismatch K[3,1:2] += [1.0 2.0 3.0]'
29792981
end

0 commit comments

Comments
 (0)