···221221let suite =
222222 ( "csvt",
223223 [
224224- test_case "no crash on arbitrary" [ bytes ]
225225- test_no_crash_arbitrary;
224224+ test_case "no crash on arbitrary" [ bytes ] test_no_crash_arbitrary;
226225 test_case "int roundtrip" [ int ] test_int_roundtrip;
227226 test_case "float roundtrip" [ float ] test_float_roundtrip;
228227 test_case "bool roundtrip" [ bool ] test_bool_roundtrip;
+7-5
lib/csvt.mli
···7777 [false]. *)
78787979val nullable_float : float t
8080-(** [nullable_float] is like {!float} but treats ["NULL"] and empty strings as [nan]. *)
8080+(** [nullable_float] is like {!float} but treats ["NULL"] and empty strings as
8181+ [nan]. *)
81828283val nullable_int : int t
8383-(** [nullable_int] is like {!int} but treats ["NULL"] and empty strings as [-1]. *)
8484+(** [nullable_int] is like {!int} but treats ["NULL"] and empty strings as [-1].
8585+*)
84868587val option : 'a t -> 'a option t
8688(** [option t] treats ["NULL"] and empty strings as [None], otherwise decodes
···105107(** {1:query Query} *)
106108107109val col : string -> 'a t -> 'a t
108108-(** [col name t] creates a single-column row codec that extracts column
109109- [name] decoded with [t]. Useful for projecting a single column from a CSV
110110- file without defining a full row type. *)
110110+(** [col name t] creates a single-column row codec that extracts column [name]
111111+ decoded with [t]. Useful for projecting a single column from a CSV file
112112+ without defining a full row type. *)
111113112114(** {1:row Row Builder} *)
113115