Skip to content

Commit 51b9907

Browse files
committed
Add other test from backend tests
1 parent 1410dd3 commit 51b9907

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/testsuite/accumulations.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@
6060
@test compare(x->accumulate(+, x), AT, rand(range, n, 2))
6161
@test compare(Base.Fix2((x,y)->accumulate(+, x; init=y), rand(range)), AT, rand(range, n))
6262
end
63+
64+
# in place
65+
@test compare(x->(accumulate!(+, x, copy(x)); x), AT, rand(range, 2))
66+
67+
@test_throws ArgumentError("accumulate does not support the keyword arguments [:bad_kwarg]") accumulate(+, AT(rand(ET, 10)); bad_kwarg="bad")
6368
end
6469
end
6570

0 commit comments

Comments
 (0)