···82828383let canonic alphabet =
8484 let dmap = Array.make 256 (-1) in
8585- String.iteri (fun i x -> dmap.(Char.code x) <- i) (Base64.alphabet alphabet);
8585+ String.iteri (fun i x -> dmap.(Char.code x) <- i) (Base64.alphabet alphabet) ;
8686 fun (input, off, len) ->
8787 let real_len = String.length input in
8888 let input_len = len in
+2-4
vendor/opam/base64/test/test.ml
···269269let test_strict_with_malformed_input_rfc2045 =
270270 List.mapi
271271 (fun i (has, _) ->
272272- Alcotest.test_case (Fmt.str "strict rfc2045 - %02d" i) `Quick
273273- @@ fun () ->
272272+ Alcotest.test_case (Fmt.str "strict rfc2045 - %02d" i) `Quick @@ fun () ->
274273 try
275274 let _ = strict_base64_rfc2045_of_string has in
276275 Alcotest.failf "Strict parser valids malformed input: %S" has
···280279let test_strict_rfc2045 =
281280 List.mapi
282281 (fun i (has, expect) ->
283283- Alcotest.test_case (Fmt.str "strict rfc2045 - %02d" i) `Quick
284284- @@ fun () ->
282282+ Alcotest.test_case (Fmt.str "strict rfc2045 - %02d" i) `Quick @@ fun () ->
285283 try
286284 let res0 = strict_base64_rfc2045_of_string has in
287285 let res1 = strict_base64_rfc2045_to_string res0 in