mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-11 05:28:33 -05:00
test: add regression test for bug in join_array
This commit is contained in:
parent
c6157ac84d
commit
5d4a29a056
1 changed files with 4 additions and 0 deletions
|
|
@ -109,3 +109,7 @@ let () =
|
|||
in
|
||||
ignore (Fut.wait_block_exn (Fut.join_list [ fut1; fut2 ]) : _ list);
|
||||
assert (Atomic.get n = 99 * 100)
|
||||
|
||||
let () =
|
||||
let x = [| Fut.return 1 |] |> Fut.join_array |> Fut.wait_block_exn in
|
||||
assert (x = [| 1 |])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue