ocaml-containers/tests/core
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
..
compat reformat 2022-07-04 13:36:06 -04:00
reg format 2024-10-02 12:31:53 -04:00
dune move to dune 3.0, fix warnings 2024-05-13 21:42:54 -04:00
t.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_array.ml Apply ocamlformat on t_array.ml 2023-07-12 16:55:22 +02:00
t_bencode.ml reformat 2022-07-04 13:36:06 -04:00
t_bool.ml CCBool: Add functions if_then and if_then_else 2023-11-26 23:31:36 -05:00
t_byte_buffer.ml reformat 2022-07-04 13:36:06 -04:00
t_byte_slice.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_canonical_sexp.ml reformat 2022-07-04 13:36:06 -04:00
t_cbor.ml Auto-format code 2025-07-09 16:06:47 +02:00
t_char.ml Fixed tests to work with older OCaml versions that lack String.for_all. 2025-01-04 10:11:03 -05:00
t_either.ml reformat 2022-07-04 13:36:06 -04:00
t_eq.ml reformat 2022-07-04 13:36:06 -04:00
t_float.ml reformat 2022-07-04 13:36:06 -04:00
t_format.ml remove conditional over OCaml >= 4.08 2023-06-24 15:22:21 -04:00
t_fun.ml feat: add CCFun.with_return 2025-02-07 16:57:56 -05:00
t_hash.ml tests for hashing strings 2025-05-06 10:01:31 -04:00
t_hashtbl.ml reformat 2022-07-04 13:36:06 -04:00
t_heap.ml format 2024-10-02 12:31:53 -04:00
t_int.ml reformat 2022-07-04 13:36:06 -04:00
t_int32.ml Merge branch 'master' into ccbv_bytes2 2022-07-04 14:35:25 -04:00
t_int64.ml Merge branch 'master' into ccbv_bytes2 2022-07-04 14:35:25 -04:00
t_IO.ml reformat 2022-07-04 13:36:06 -04:00
t_list.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_map.ml reformat 2022-07-04 13:36:06 -04:00
t_nativeint.ml reformat 2022-07-04 13:36:06 -04:00
t_option.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_ord.ml reformat 2022-07-04 13:36:06 -04:00
t_pair.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_parse.ml reformat all the things 2024-05-13 20:57:53 -04:00
t_pp.ml add test for nested ansi color 2023-11-19 22:27:51 -05:00
t_random.ml reformat 2022-07-04 13:36:06 -04:00
t_ref.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_result.ml Add comprehensive tests for undertested modules 2026-02-08 05:18:10 +00:00
t_seq.ml reformat 2022-07-04 13:36:06 -04:00
t_set.ml reformat 2022-07-04 13:36:06 -04:00
t_sexp.ml ocamlformat 2024-12-13 00:17:53 -05:00
t_string.ml add more tests for CCString.{r,}take_while 2025-01-03 12:54:01 -05:00
t_unix.ml reformat 2022-07-04 13:36:06 -04:00
t_utf8string.ml ocamlformat 2024-12-13 00:17:53 -05:00
t_vector.ml test: better regression test for #454 2024-09-17 14:04:09 -04:00