summaryrefslogtreecommitdiffstats
path: root/test/btree_test.c
AgeCommit message (Collapse)AuthorFilesLines
2022-08-18Use conventional test executable namesDavid Robillard1-642/+0
2022-06-28Use uppercase integer literal suffixesDavid Robillard1-26/+26
I give in.
2022-06-28Fix build as C with MSVCDavid Robillard1-1/+1
2022-03-14Reduce default BTree test timeDavid Robillard1-1/+1
2021-09-14Replace shared library malloc shim with explicit allocation testingDavid Robillard1-21/+24
The old approach was generally annoying to deal with sometimes, and not particularly portable. This replaces it by using the new custom allocator interface with unit tests that specifically check that failed allocation is handled properly.
2021-09-10Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-09-10Add custom allocator supportDavid Robillard1-7/+7
2021-09-10Add a user handle to destroy callbackDavid Robillard1-11/+13
2021-09-10Add test that covers more BTree removal casesDavid Robillard1-0/+39
2021-09-10Add test for reinserting a value that is a BTree node split pivotDavid Robillard1-0/+20
2021-09-10Add test for BTree iterator comparisonDavid Robillard1-0/+44
2021-09-10Simplify BTree implementationDavid Robillard1-3/+3
2021-09-10Avoid inserting wildcards as values in BTree testDavid Robillard1-8/+8
2021-09-10Allow ZixBTreeIter to be allocated on the stackDavid Robillard1-49/+8
2021-09-10Remove destroy field of BTree and add zix_btree_clear()David Robillard1-10/+53
If this is used, it is only when clearing or freeing a tree. Allowing it to be given as a parameter directly there is clearer and avoids bloating the tree itself with information that isn't needed.
2021-09-10Fix conversion warningsDavid Robillard1-1/+1
2021-07-17Avoid use of rand()David Robillard1-17/+2
2021-07-17Avoid use of atoi() and atol()David Robillard1-3/+3
2021-07-17Use line comments where appropriateDavid Robillard1-1/+1
2021-04-14Fix VS2019 warningsDavid Robillard1-1/+1
2020-12-31Fix MinGW buildDavid Robillard1-11/+28
2020-12-31Update copyright headersDavid Robillard1-1/+1
2020-12-31Force enable assertions in BTree testDavid Robillard1-0/+2
2020-12-31Initialize all variablesDavid Robillard1-6/+8
2020-12-31Format all code with clang-formatDavid Robillard1-424/+447
2020-12-31Avoid "else" after "return"David Robillard1-22/+58
2020-11-11Add configure option to disable test malloc implementationDavid Robillard1-1/+1
2020-08-14Fix potential division by zeroDavid Robillard1-1/+3
2020-08-13Shrink some codeDavid Robillard1-11/+5
2020-08-13Fix signed operands of bitwise operatorsDavid Robillard1-1/+1
2020-08-13Clean up includes and forward declarationsDavid Robillard1-1/+1
2020-08-13Fix Wno-shorten-64-to-32 warningsDavid Robillard1-1/+1
2020-08-13Fix incorrect format specifiersDavid Robillard1-31/+34
2020-08-13Add format attributesDavid Robillard1-0/+1
2020-08-13Fix unused parameter warningsDavid Robillard1-2/+2
2019-10-18Fix MinGW buildDavid Robillard1-0/+2
2019-10-18Fix some integer conversion warningsDavid Robillard1-13/+13
2019-10-18Fix unused parameter warningsDavid Robillard1-1/+3
2019-10-18Improve BTree test coverageDavid Robillard1-4/+29
2019-10-18Fix bug when deleting root node of BTreeDavid Robillard1-2/+24
2019-01-06Clean up includesDavid Robillard1-5/+6
2018-11-14Make comparator functions take const user dataDavid Robillard1-2/+2
2016-07-11Improve test coverageDavid Robillard1-2/+22
git-svn-id: http://svn.drobilla.net/zix/trunk@106 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
2014-12-18Add missing files.David Robillard1-0/+408
git-svn-id: http://svn.drobilla.net/zix/trunk@99 df6676b4-ccc9-40e5-b5d6-7c4628a128e3