Skip to content

Commit

Permalink
test for negative-length copyto! call (#30)
Browse files Browse the repository at this point in the history
Discovered by #29
  • Loading branch information
nsajko authored Apr 23, 2024
1 parent 9a28eb6 commit 52e3342
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ end
@test copyto!(d, s) == 1:5
@test copyto!(d, 1, s, 1, length(s)) isa D{Float64}
@test copyto!(d, 1, s, 1, length(s)) == 1:5
@test_throws ArgumentError copyto!(d, 1, s, 1, -1)
end
end
end
Expand Down

0 comments on commit 52e3342

Please sign in to comment.