Skip to content

Commit

Permalink
Don't use Fun.id in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Aug 2, 2022
1 parent f787b9a commit 87f9aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/types.ml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ let%test "abstract pointer" = Util.check_leaks (fun () ->
)

let%test "seq sum" = Util.check_leaks (fun () ->
let l = List.init 100 Fun.id in
let l = List.init 100 (fun x -> x) in
let s = List.to_seq l in
let sum = seq_sum s in
let sum' = List.fold_left ( + ) 0 l in
Expand Down

0 comments on commit 87f9aa0

Please sign in to comment.