Skip to content

Commit

Permalink
use iteration index as seed for scheme tester
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepybishop committed Feb 26, 2022
1 parent fa81abc commit 389007b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/10random_schemes.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ use Digest::MD5 qw(md5_hex);
use Data::Dumper;

sub run_test {
return run_prog("./t/00util/test");
my $seed = shift;
return run_prog("./t/00util/test $seed");
}

subtest "random schemes" => sub {
my ($idx, $iters) = (0, 200);
my ($idx, $iters) = (0, 2000);
while ($idx < $iters) {
my $resp = run_test($_);
my $resp = run_test($idx);
like $resp, "/===OK===/", "iter $idx";
$idx++;
}
Expand Down

0 comments on commit 389007b

Please sign in to comment.