Skip to content

Commit

Permalink
add colon test
Browse files Browse the repository at this point in the history
  • Loading branch information
dkarrasch committed Jan 6, 2022
1 parent 2f3d1ea commit 5b149c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/arrayops.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2975,5 +2975,7 @@ end
@test K == b
K[3,1:3] += zeros(3)
@test K == b
K[3,:] += zeros(3,1)
@test K == b
@test_throws DimensionMismatch K[3,1:2] += [1.0 2.0 3.0]'
end

0 comments on commit 5b149c0

Please sign in to comment.