Skip to content

Commit bd7a282

Browse files
authored
Merge pull request #2656 from JuliaGPU/ksh/kwarg_test
Test error throw for accumulate
2 parents c735d30 + e61aa07 commit bd7a282

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/base/array.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,8 @@ end
397397
# specialized
398398
@test testf(cumsum, rand(2))
399399
@test testf(cumprod, rand(2))
400+
401+
@test_throws ArgumentError("accumulate does not support the keyword arguments [:bad_kwarg]") accumulate(+, CUDA.rand(1024); bad_kwarg="bad")
400402
end
401403

402404
@testset "logical indexing" begin

0 commit comments

Comments
 (0)