Skip to content

Commit

Permalink
added a small test case for RT #83766
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Dec 16, 2012
1 parent 6e9eca5 commit b5ce7a2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S05-transliteration/trans.t
Expand Up @@ -10,7 +10,7 @@ String transliteration

# L<S05/Transliteration>

plan 58;
plan 59;

is("ABC".trans( ('A'=>'a'), ('B'=>'b'), ('C'=>'c') ),
"abc",
Expand Down Expand Up @@ -292,4 +292,8 @@ is('ababab'.trans([/ab/, 'aba', 'bab', /baba/] =>
#?pugs todo
lives_ok { my @a = 1..2; @a>>.trans((1..2) => (14..15,1..2)); }, 'trans works with Cool signature';

# RT #83766
is((1, 2)>>.trans((1..26) => (14..26,1..13)), <14 15>, '.trans with a pair of parcels using postfix hypermetaoperator works');
is ("!$_!" for (1, 2)>>.trans((1..26) => (14..26,1..13))), <!14! !15!>, "same with explicit for"

# vim: ft=perl6

0 comments on commit b5ce7a2

Please sign in to comment.