Skip to content

Commit d21d2b3

Browse files
authored
Merge pull request #415 from dogbert17/test-rt-127974
Add test for RT #127974
2 parents 1f171a9 + 76d6344 commit d21d2b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S07-hyperrace/basics.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 84;
4+
plan 85;
55

66
for <hyper race> -> $meth {
77
sub hr (\seq) { $meth eq 'race' ?? seq.sort !! seq }
@@ -181,3 +181,9 @@ is-deeply ^1000 .hyper.map(*+1).Array, [^1000 + 1], '.hyper preserves order';
181181
my @a = (1..100).hyper.map({foo});
182182
is-deeply @a, [++ xx 100], hyperized s/…/…/;
183183
}
184+
185+
# RT #127974
186+
{
187+
is-deeply (^100).race(batch=>1).map({ sprintf '%1$s %2$s', 5, 42 }).List, 5 42 xx 100,
188+
'sprintf is threadsafe when format tokens use explicit indices';
189+
}

0 commit comments

Comments
 (0)