tests/test-bitset.c


Log

Author Commit Date CI Message
Simon Josefsson 32a72f45 2023-01-01T01:14:21 maint: run 'make update-copyright'
Bernhard Voelker 87e6634b 2022-01-04T00:16:50 license: fix GPLv3 texts to use a comma instead of semicolon. See: https://www.gnu.org/licenses/gpl-3.0.html#howto Run: $ git grep -l 'Foundation; either version 3' \ | xargs sed -i '/Foundation; either version 3/ s/n; e/n, e/' * All files using GPLv3: Adjust via the above command.
Paul Eggert eec12c00 2022-01-01T09:43:19 maint: run 'make update-copyright'
Paul Eggert 4b948321 2021-01-01T07:28:52 maint: run 'make update-copyright'
Akim Demaille 0b66b372 2020-11-21T14:11:34 bitset: tests: check BITSET_FOR_EACH_REVERSE * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones): Check BITSET_FOR_EACH_REVERSE.
Akim Demaille 9351b403 2020-11-19T06:42:58 bitset: tests: exercise the stats too * tests/test-bitset.c: Display the stats at the end of the test. * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the last bin, display "256-..." rather that "256-511", since the last bin does count item greater than or equal to 256.
Akim Demaille 4a959de3 2020-11-18T21:37:34 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.
Akim Demaille 030a8c89 2020-11-18T07:28:39 bitset: check empty and full bitsets * tests/test-bitset.c (check_zero, check_ones): New. (check_attributes): Use them.
Akim Demaille ac91d2f3 2020-11-17T07:29:05 bitset: strengthen tests * tests/test-bitset.c (compare): Also check count. Deal only with random values, move the one-bit tests to... (check_one_bit): this new function. (check_attributes): Call it.
Akim Demaille 927c02db 2020-11-17T08:23:14 bitset: test: run deterministic tests on several bitset sizes * tests/test-bitset.c (check_attributes): Run it with small and large sizes.
Akim Demaille ac6f2e65 2020-11-14T16:01:23 bitset: more tests These new tests managed to uncover shortcomings in previous versions of the following commit. * tests/test-bitset.c (compare): Make it clear that the random values should not be modified. Check bitset_first, bitset_last and BITSET_FOR_EACH.
Paul Eggert 2cdc1baf 2020-01-01T00:00:18 maint: Run 'make update-copyright'
Akim Demaille 7b31451e 2019-03-18T18:27:27 bitset: expose bitset_resize * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation. * tests/test-bitset.c (check_attributes): Check bitset_resize. (main): Use a variable bitset as reference, since fixed does not support resize.
Akim Demaille bca971bd 2019-03-16T17:36:22 bitset: a bit (...) more tests * tests/test-bitset.c (check_attributes): Check zero and ones.
Bruno Haible 8c96eb80 2019-03-10T14:05:09 tests: Free allocated memory. Reported by <deltatau@protonmail.com> via Assaf Gordon. * tests/test-astrxfrm.c (main): Free allocated memory. * tests/test-bitset.c (compare, check_attributes): Free allocated bitsets. * tests/test-filenamecat.c (main): Free allocated memory. * tests/test-freadahead.c (main): Free allocated memory and close stdin. * tests/test-freadptr.c (main): Likewise. * tests/test-freadptr2.c (main): Free allocated memory. * tests/test-freadseek.c (main): Likewise. * tests/test-gc-arcfour.c (main): Close allocated context. * tests/test-gc-arctwo.c (main): Likewise. * tests/test-gc-des.c (main): Close all allocated contexts. * tests/test-pipe-filter-gi1.c (main): Free allocated memory. * tests/test-pipe-filter-ii1.c (main): Likewise. * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the allocated file actions. * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise. * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise. * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise. * tests/test-sameacls.c (main): Free allocated memory and ACLs. * tests/test-strfmon_l.c (main): Free allocated locales. * tests/test-striconveh.c (main): Free allocated iconv_t objects. * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory. * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise. * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise. * tests/unistr/test-chr.h (main): Free input32. * tests/unistr/test-strchr.h (test_strchr): Likewise.
Paul Eggert e6633650 2019-01-01T00:25:11 maint: Run 'make update-copyright'
Akim Demaille 86cd6665 2018-11-28T05:56:21 bitset: check the operations * tests/test-bitset.c (bitset_random): New. Use it. * lib/bitset/expandable.c (ebitset_not): Fix typo.
Akim Demaille 7c0d555a 2018-11-25T09:49:09 bitset: add tests and doc First stabs at providing a documentation and test for the bitset module. * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.