File: 06_nodata_step.t

package info (click to toggle)
libmce-perl 1.901-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,316 kB
  • sloc: perl: 14,091; makefile: 7
file content (27 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env perl

use strict;
use warnings;

use Test::More;

BEGIN {
   use_ok 'MCE::Step';
}

MCE::Step->init(
   max_workers => 4
);

##  input_data is not required to run mce_step

my @a = mce_step sub {
   MCE->gather(MCE->wid * 2);
};

is( join('', sort @a), '2468', 'check gathered data' );

MCE::Step->finish;

done_testing;