Skip to content

Commit 589aa76

Browse files
committed
Add test for too large ints
1 parent b8ff494 commit 589aa76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_isal.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
DATA_SIZES = [2**i for i in range(3, 20)]
3636
# 100 seeds generated with random.randint(0, 2**32-1)
3737
SEEDS_FILE = DATA_DIR / "seeds.txt"
38-
# Create seeds -3, -20, 0, 1 and 20 seeds from the seeds file.
39-
SEEDS = [-3, -20, 0, 1] + [
38+
INT_OVERFLOW = 211928379812738912738917238971289378912379823871932719823798123
39+
# Get some negative ints and some really big ints into the mix.
40+
SEEDS = [-INT_OVERFLOW, -3, -1, 0, 1, INT_OVERFLOW] + [
4041
int(seed) for seed in SEEDS_FILE.read_text().splitlines()]
4142

4243
# Wbits for ZLIB compression, GZIP compression, and RAW compressed streams

0 commit comments

Comments
 (0)