ocaml-containers/tests/core
Simon Cruanes 3df799dd0f Add comprehensive CBOR tests with edge cases and error handling
- Added 100+ specific test cases for CBOR encoding/decoding
- Integer boundary tests (0, 23, 24, 255, 256, 65535, Int64 limits)
- Negative integer tests
- Float tests including infinity and NaN handling
- UTF-8 string tests with emoji and international characters
- Byte string tests with binary data
- Array and Map tests including empty and nested structures
- Tag tests for common CBOR tags (0, 1, 32)
- Simple value tests (0-255)
- Error case tests for invalid CBOR data
- Diagnostic string output tests
- Deep nesting tests (100 levels)
- Large collection tests (1000 elements)
- Additional property tests for consistency
- Fixed missing ;; terminator in original roundtrip test
- All tests compile and validate against CBOR RFC 8949

Total: ~150 new test cases covering:
  * All CBOR data types
  * Edge cases and boundaries
  * Error handling
  * RFC compliance
  * Performance with large data
2026-02-08 05:45:22 +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 Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +00:00
t_canonical_sexp.ml reformat 2022-07-04 13:36:06 -04:00
t_cbor.ml Add comprehensive CBOR tests with edge cases and error handling 2026-02-08 05:45:22 +00: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 Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +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 Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +00:00
t_ord.ml reformat 2022-07-04 13:36:06 -04:00
t_pair.ml Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +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 Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +00:00
t_result.ml Fix test compilation issues and simplify result tests 2026-02-08 05:38:24 +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