Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added a small test case for RT #83766

  • Loading branch information...
commit b5ce7a2b97a3e44a68f1119ecb8aff8e334a7478 1 parent 6e9eca5
timo timo authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 S05-transliteration/trans.t
6 S05-transliteration/trans.t
@@ -10,7 +10,7 @@ String transliteration
10 10
11 11 # L<S05/Transliteration>
12 12
13   -plan 58;
  13 +plan 59;
14 14
15 15 is("ABC".trans( ('A'=>'a'), ('B'=>'b'), ('C'=>'c') ),
16 16 "abc",
@@ -292,4 +292,8 @@ is('ababab'.trans([/ab/, 'aba', 'bab', /baba/] =>
292 292 #?pugs todo
293 293 lives_ok { my @a = 1..2; @a>>.trans((1..2) => (14..15,1..2)); }, 'trans works with Cool signature';
294 294
  295 +# RT #83766
  296 +is((1, 2)>>.trans((1..26) => (14..26,1..13)), <14 15>, '.trans with a pair of parcels using postfix hypermetaoperator works');
  297 +is ("!$_!" for (1, 2)>>.trans((1..26) => (14..26,1..13))), <!14! !15!>, "same with explicit for"
  298 +
295 299 # vim: ft=perl6

0 comments on commit b5ce7a2

Please sign in to comment.
Something went wrong with that request. Please try again.