Skip to content

Commit c9c6256

Browse files
committed
Only test large accumulations on large types
1 parent 27861a7 commit c9c6256

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/testsuite/accumulations.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656

5757
# Larger containers to try and detect weird bugs
5858
for n in (0, 1, 2, 3, 10, 10_000, 16384, 16384+1) # small, large, odd & even, pow2 and not
59+
# Skip large tests on small datatypes
60+
n >= 10000 && sizeof(real(ET)) <= 2 && continue
61+
5962
@test compare(x->accumulate(+, x), AT, rand(range, n))
6063
@test compare(x->accumulate(+, x), AT, rand(range, n, 2))
6164
@test compare(Base.Fix2((x,y)->accumulate(+, x; init=y), rand(range)), AT, rand(range, n))

0 commit comments

Comments
 (0)