We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7328b7 commit f01416cCopy full SHA for f01416c
S05-transliteration/trans.t
@@ -1,6 +1,7 @@
1
use v6;
2
-
+use lib <t/spec/packages/>;
3
use Test;
4
+use Test::Util;
5
6
=begin pod
7
@@ -10,7 +11,7 @@ String transliteration
10
11
12
# L<S05/Transliteration>
13
-plan 64;
14
+plan 65;
15
16
is("ABC".trans( ('A'=>'a'), ('B'=>'b'), ('C'=>'c') ),
17
"abc",
@@ -284,4 +285,9 @@ subtest 'Adverbs on Cool.trans work the same as on Str.trans' => {
284
285
'99908807', ':complement, :squash';
286
}
287
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
+
293
# vim: ft=perl6
0 commit comments