aboutsummaryrefslogtreecommitdiff
path: root/tests/core/container
Commit message (Collapse)AuthorAgeFilesLines
* Add small array resize testsDamian Tarnawski2025-09-151-0/+22
|
* container/queue: Add testsFeoramund2025-06-111-0/+157
|
* Makes tracking allocator default to crashing on a bad free instead of add to ↵Karl Zylinski2024-12-211-0/+1
| | | | bad_free_array. The bad_free_array remains to not break old code. The new default behavior is implemented in a callback that you can override, there's a second provided callback that provides the old behavior where an element was added to bad_free_array. Rationale: Many people are just checking the allocation_map, but don't check the bad free array. Several examples throughout core that use tracking allocator don't check bad_free_array either, so people have been taught not to check it.
* Add tests for `Bit_Array`Feoramund2024-09-031-0/+244
|
* Return false if `Small_Array` can't append multiple elementsFeoramund2024-09-031-0/+19
| | | | Fixes #4177
* Fix `-vet` and `-strict-style` failures in testsFeoramund2024-08-261-1/+1
|
* Use test's random generatorFeoramund2024-06-152-6/+0
| | | | | This removes the `create` calls when a test was only setting up a generator, and it replaces them with `reset` when run in a loop.
* Remove dead variablegingerBill2024-06-152-2/+0
|
* Fix `rand` in container testsgingerBill2024-06-152-7/+9
|
* Use `T.seed` in tests where applicableFeoramund2024-06-022-11/+5
|
* Update `core:container` testsJeroen van Rijn2024-06-024-138/+118
|
* Address concerns.Jeroen van Rijn2024-05-241-1/+1
|
* Add `core:container/rbtree`Jeroen van Rijn2024-05-233-9/+256
| | | | | | | | Add a red-black tree with configurable $Key and $Value. Also includes tests that verify it maintains RB invariants, doesn't leak. Originally based on the CC0 implementation from literateprograms.org. But reworked to the same API used by @Yawning's excellent `core:container/avl` for ease of use.
* core/container/avl: Initial importYawning Angel2024-02-242-0/+162
|
* test/core/container: Refactor for multiple container typesYawning Angel2024-02-242-19/+34
|
* Add more utility procedures to small arrayLucas Perlind2022-12-211-0/+56