Commit graph

10 commits

Author SHA1 Message Date
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
Jan Midtgaard
1a11459991 Auto-format code 2025-07-09 16:06:47 +02:00
Jan Midtgaard
0290aa9754 Use CCList.equal for backward compatibility 2025-07-09 15:48:24 +02:00
Jan Midtgaard
9df429005d Patch CBor roundtrip property to hold for nan's too 2025-07-09 12:25:39 +02:00
Simon Cruanes
cad41d70d6
ocamlformat 2024-12-13 00:17:53 -05:00
Simon Cruanes
1a23731730
remove conditional over OCaml >= 4.08
in particular, all the let-ops are now unconditional!
2023-06-24 15:22:21 -04:00
Simon Cruanes
87b10adcca
test: update the cbor tests 2023-04-19 22:11:11 -04:00
Simon Cruanes
6a415e963a
fix(cbor): use int64 as main int type 2022-07-06 22:27:24 -04:00
Simon Cruanes
10865eaced reformat 2022-07-04 13:36:06 -04:00
Simon Cruanes
3e2379660e
move cbor tests into tests/ 2022-07-02 23:49:41 -04:00
Renamed from src/cbor/tests/t.ml (Browse further)