Skip to content

Commit 66a8dfc

Browse files
committed
add a test
1 parent 336ebe6 commit 66a8dfc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/CCList.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ let uniq ?(eq=(=)) l =
950950
uniq [1;1;2;2;3;4;4;2;4;1;5] |> List.sort Pervasives.compare = [1;2;3;4;5]
951951
*)
952952

953+
(*$Q
954+
Q.(small_list small_int) (fun l -> \
955+
sort_uniq l = (uniq l |> sort Pervasives.compare))
956+
*)
957+
953958
let union ?(eq=(=)) l1 l2 =
954959
let rec union eq acc l1 l2 = match l1 with
955960
| [] -> List.rev_append acc l2

0 commit comments

Comments
 (0)