Skip to content

Commit

Permalink
Merge pull request #415 from dogbert17/test-rt-127974
Browse files Browse the repository at this point in the history
Add test for RT #127974
  • Loading branch information
zoffixznet committed Apr 8, 2018
2 parents 1f171a9 + 76d6344 commit d21d2b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S07-hyperrace/basics.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 84;
plan 85;

for <hyper race> -> $meth {
sub hr (\seq) { $meth eq 'race' ?? seq.sort !! seq }
Expand Down Expand Up @@ -181,3 +181,9 @@ is-deeply ^1000 .hyper.map(*+1).Array, [^1000 + 1], '.hyper preserves order';
my @a = (1..100).hyper.map({foo});
is-deeply @a, [++ xx 100], hyperized s/…/…/;
}

# RT #127974
{
is-deeply (^100).race(batch=>1).map({ sprintf '%1$s %2$s', 5, 42 }).List, 5 42 xx 100,
'sprintf is threadsafe when format tokens use explicit indices';
}

0 comments on commit d21d2b3

Please sign in to comment.