Commit graph

17 commits

Author SHA1 Message Date
Simon Cruanes
f59b264241 Add comprehensive tests for undertested modules
- Added complete test suite for CCPair (141 tests)
  * Tests for all map functions, swap, operators, dup, equal/compare
  * Property-based tests for key invariants

- Added complete test suite for CCRef (269 tests)
  * Tests for create, map, iter, update
  * Tests for incr_then_get and get_then_incr
  * Tests for swap and protect with exception safety
  * Property-based tests for all operations

- Added complete test suite for CCByte_slice (199 tests)
  * Tests for creation with offsets and lengths
  * Tests for get/set with bounds checking
  * Tests for consume and sub operations
  * Tests for contents and sharing semantics
  * Property-based tests for slice operations

- Expanded CCOption tests (added 200+ tests)
  * Tests for map_or, map_lazy, wrap, or_lazy
  * Tests for sequence_l, choice, flatten
  * Tests for result conversion functions
  * Comprehensive property-based tests

- Expanded CCResult tests (added 180+ tests)
  * Tests for guard, wrap1/2/3, retry
  * Tests for map_l, fold_l, choose
  * Tests for both, join, flatten_l
  * Comprehensive error handling tests

- Expanded CCList tests (added 120+ tests)
  * Tests for interleave, take_while, drop_while
  * Tests for find_map, partition_map, sublists_of_len
  * Tests for sorted_merge, sorted_uniq, group_by
  * Edge cases for take/drop and range functions
  * Property-based tests for list operations

All tests follow existing patterns using Containers_testlib with
unit tests (t), equality assertions (eq), and property tests (q).
2026-02-08 05:18:10 +00:00
Simon Cruanes
ddc87518a7
another test for lists 2025-12-20 11:08:39 -05:00
Simon Cruanes
944410d3c7
CI: run all tests on linux and various OCaml versions
and run macOS stuff only for 5.1
2024-05-13 22:36:16 -04:00
Simon Cruanes
2e276002c6
format 2024-05-13 22:06:31 -04:00
Simon Cruanes
884d354986
fix test 2023-12-20 14:41:48 -05:00
Simon Cruanes
8dc4d5a706
fix: overshoot, concat_map is only TRMC after 5.1 2023-12-20 14:38:39 -05:00
Simon Cruanes
7436727942
test: sanity test for flat_map 2023-12-15 22:36:21 -05:00
Simon Cruanes
f68d187142
fix stupid bug 2023-12-05 15:02:41 -05:00
Simon Cruanes
36790cf3ed
bugfix 2023-12-05 12:19:15 -05:00
Simon Cruanes
7fcf26963b
ensure unfold is tailrec 2023-12-05 12:04:55 -05:00
Ben Bellick
73e68dae7c CCList: add unfold 2023-12-05 11:59:55 -05:00
Simon Cruanes
037c55a43d
tailrec 2023-11-19 23:51:47 -05:00
Simon Cruanes
1b3ddb7adf
fix test 2023-11-19 22:25:17 -05:00
Simon Cruanes
1b026f267c
tests: update t_list to check more functions for tail-rec safety 2023-11-19 21:47:39 -05:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
49c06e93fa
wip: use testlib for tests 2022-06-30 22:28:19 -04:00
Simon Cruanes
369b208385
test: migrate part of CCList's tests to experiment with testlib 2022-06-30 21:15:16 -04:00