Fix a bug in fibers-batch-map (and related procedures)
And add more tests.
This commit is contained in:
parent
e8ab6f23d8
commit
4e791aff68
2 changed files with 21 additions and 1 deletions
|
@ -24,6 +24,16 @@
|
|||
100
|
||||
(iota 34))))))
|
||||
|
||||
;; Test fibers-map with an empty list
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
(fibers-map identity '())))
|
||||
|
||||
;; Test fibers-map with an empty vector
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
(fibers-map identity #())))
|
||||
|
||||
;; Test fibers-map with vectors
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
|
@ -43,4 +53,11 @@
|
|||
(* 2 i))
|
||||
(iota 34))))
|
||||
|
||||
;; Test fibers-map-with-progress with an empty list
|
||||
(run-fibers-for-tests
|
||||
(lambda ()
|
||||
(fibers-map-with-progress
|
||||
identity
|
||||
'(()))))
|
||||
|
||||
(display "parallelism test finished successfully\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue