Skip to content

Commit 52e3342

Browse files
authored
test for negative-length copyto! call (#30)
Discovered by #29
1 parent 9a28eb6 commit 52e3342

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ end
193193
@test copyto!(d, s) == 1:5
194194
@test copyto!(d, 1, s, 1, length(s)) isa D{Float64}
195195
@test copyto!(d, 1, s, 1, length(s)) == 1:5
196+
@test_throws ArgumentError copyto!(d, 1, s, 1, -1)
196197
end
197198
end
198199
end

0 commit comments

Comments
 (0)