···218218 let oc = open_out file in
219219 (* Write 10KB of content - enough to trigger delta compression *)
220220 for i = 1 to 500 do
221221- Printf.fprintf oc "Line %d: This is some repetitive content.\n" i
221221+ Fmt.pf oc "Line %d: This is some repetitive content.\n" i
222222 done;
223223 close_out oc;
224224 ignore (run_git tmp_dir [ "add"; "large.txt" ]);
···226226 (* Modify just a few lines - this will create a delta *)
227227 let oc = open_out file in
228228 for i = 1 to 500 do
229229- if i = 250 then Printf.fprintf oc "Line %d: MODIFIED CONTENT HERE!\n" i
230230- else Printf.fprintf oc "Line %d: This is some repetitive content.\n" i
229229+ if i = 250 then Fmt.pf oc "Line %d: MODIFIED CONTENT HERE!\n" i
230230+ else Fmt.pf oc "Line %d: This is some repetitive content.\n" i
231231 done;
232232 close_out oc;
233233 ignore (run_git tmp_dir [ "add"; "large.txt" ]);
+1-2
test/test_pack_index.ml
···7676 "valid kind" true
7777 (match kind with `Commit | `Tree | `Blob | `Tag -> true)
7878 | Error (`Msg m) ->
7979- Alcotest.fail
8080- (Printf.sprintf "object %d at offset %d: %s" i offset m)
7979+ Alcotest.fail (Fmt.str "object %d at offset %d: %s" i offset m)
8180 done
8281 | Error (`Msg m), _ -> Alcotest.fail ("pack: " ^ m)
8382 | _, Error (`Msg m) -> Alcotest.fail ("index: " ^ m)