]> Savannah Git Hosting - gnulib.git/commit
bitset: tests: try harder to break it
authorAkim Demaille <akim.demaille@gmail.com>
Wed, 18 Nov 2020 20:37:34 +0000 (21:37 +0100)
committerAkim Demaille <akim.demaille@gmail.com>
Thu, 19 Nov 2020 06:01:23 +0000 (07:01 +0100)
commit4a959de38cb2daf81cfabccbcbcfeb7ffd28b9c6
tree86d3fbd419a305810eddc3639b440f1db53b022c
parent51c37359b756d2a4e1b7e92f8c00cc499a40cafe
bitset: tests: try harder to break it

bitset_list (used in bitset_first, bitset_next, bitset_count,
BITSET_FOR_EACH, etc.) uses a cache of size BITSET_LIST_SIZE (1024).
None of our tests current try bitsets bigger than this.

* tests/test-bitset.c (compare): Be ready to use bitsets larger than
BITSET_LIST_SIZE.
(main): Likewise.
While at it, also exercise super small bitsets.
ChangeLog
tests/test-bitset.c