mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
test: regression test for stack overflow in CCpool
This commit is contained in:
parent
685efeae28
commit
54099f10d5
1 changed files with 12 additions and 0 deletions
|
|
@ -546,6 +546,18 @@ module Make(P : PARAM) = struct
|
||||||
OUnit.assert_equal expected (Fut.get l')
|
OUnit.assert_equal expected (Fut.get l')
|
||||||
*)
|
*)
|
||||||
|
|
||||||
|
(*$R
|
||||||
|
let l = CCList.(1 -- 100_000) in
|
||||||
|
let l' = l
|
||||||
|
|> List.map
|
||||||
|
(fun x -> Fut.make (fun () -> 1))
|
||||||
|
|> Fut.sequence_l
|
||||||
|
|> Fut.map (List.fold_left (+) 0)
|
||||||
|
in
|
||||||
|
let expected = 100_000 in
|
||||||
|
OUnit.assert_equal expected (Fut.get l')
|
||||||
|
*)
|
||||||
|
|
||||||
(*$R
|
(*$R
|
||||||
let l = CCList.(1 -- 50) in
|
let l = CCList.(1 -- 50) in
|
||||||
let l' = l
|
let l' = l
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue