Skip to content

Commit f01416c

Browse files
committed
Test .trans with regex pair complement mode does not produce warnings
Bug finding: https://irclog.perlgeek.de/perl6/2016-12-06#i_13692293 Fix commit: rakudo/rakudo@2e1b82cfa2
1 parent d7328b7 commit f01416c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

S05-transliteration/trans.t

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use v6;
2-
2+
use lib <t/spec/packages/>;
33
use Test;
4+
use Test::Util;
45

56
=begin pod
67
@@ -10,7 +11,7 @@ String transliteration
1011

1112
# L<S05/Transliteration>
1213

13-
plan 64;
14+
plan 65;
1415

1516
is("ABC".trans( ('A'=>'a'), ('B'=>'b'), ('C'=>'c') ),
1617
"abc",
@@ -284,4 +285,9 @@ subtest 'Adverbs on Cool.trans work the same as on Str.trans' => {
284285
'99908807', ':complement, :squash';
285286
}
286287

288+
# https://irclog.perlgeek.de/perl6/2016-12-06#i_13692293
289+
is_run print '@x'.trans: (/\@/ => '-',), :c, {
290+
:out('@-'), :err(''),
291+
}, '.trans with complement regex pair does not produce spurious warnings';
292+
287293
# vim: ft=perl6

0 commit comments

Comments
 (0)