mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
add a small test
This commit is contained in:
parent
7e9f87ecba
commit
6d728d5ce7
1 changed files with 7 additions and 0 deletions
|
|
@ -359,6 +359,13 @@ let combine l1 l2 =
|
||||||
combine (1 -- 100_000) (1 -- 100_000) = List.combine (1 -- 100_000) (1 -- 100_000)
|
combine (1 -- 100_000) (1 -- 100_000) = List.combine (1 -- 100_000) (1 -- 100_000)
|
||||||
*)
|
*)
|
||||||
|
|
||||||
|
(*$Q
|
||||||
|
Q.(let p = small_list int in pair p p)(fun (l1,l2) -> \
|
||||||
|
if List.length l1=List.length l2 \
|
||||||
|
then CCList.combine l1 l2 = List.combine l1 l2 \
|
||||||
|
else Q.assume_fail() )
|
||||||
|
*)
|
||||||
|
|
||||||
let return x = [x]
|
let return x = [x]
|
||||||
|
|
||||||
let (>>=) l f = flat_map f l
|
let (>>=) l f = flat_map f l
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue