Terminal styling and layout widgets for OCaml (tables, trees, panels, colors)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(requests,tty,streaming-aead): fix tests and add mli docstrings

- Validate HTTP-date time components (reject second=60) per RFC 9110
- Fix tty table truncation test to explicitly set overflow to Truncate
- Correct tty table.mli overflow default documentation
- Initialize crypto RNG in streaming-aead fuzz runner
- Add docstrings to test module mli files across requests and rpmsg

+3 -3
+2 -2
lib/table.mli
··· 16 16 type overflow = [ `Truncate | `Wrap ] 17 17 (** How to handle content that exceeds max_width. 18 18 19 - - [`Truncate]: Cut off with ellipsis (default) 20 - - [`Wrap]: Wrap to multiple lines *) 19 + - [`Truncate]: Cut off with ellipsis 20 + - [`Wrap]: Wrap to multiple lines (default) *) 21 21 22 22 type column 23 23 (** A column specification. *)
+1 -1
test/test_table.ml
··· 27 27 let table = 28 28 Table.( 29 29 of_rows 30 - [ column ~max_width:6 "Header" ] 30 + [ column ~max_width:6 ~overflow:`Truncate "Header" ] 31 31 [ [ Span.text "very long text that should be truncated" ] ]) 32 32 in 33 33 let output = Table.to_string table in