Skip to content

Commit 8f11d73

Browse files
committed
Fudge for niecza.
1 parent f0e1cc8 commit 8f11d73

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

S05-transliteration/trans.t

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ is("\x12c\x190".trans("\x12c" => "\x190"), "\x190\x190");
9898

9999
# should these be combined?
100100
#?rakudo skip 'disambiguate ranges'
101+
#?niecza todo
101102
is($b.trans('A..H..Z' => 'a..h..z'), $a,
102103
'ambiguous ranges combined');
103104

@@ -117,6 +118,7 @@ is("hello".trans("l" => ""), "heo", "can replace with empty string");
117118
# complement, squeeze/squash, delete
118119

119120
#?rakudo 2 skip 'flags'
121+
#?niecza 2 skip 'trans flags NYI'
120122
is('bookkeeper'.trans(:s, 'a..z' => 'a..z'), 'bokeper',
121123
':s flag (squash)');
122124

@@ -127,6 +129,7 @@ is('ABC123DEF456GHI'.trans('A..Z' => 'x'), 'xxx123xxx456xxx',
127129
'no flags');
128130

129131
#?rakudo 4 skip 'flags'
132+
#?niecza 4 skip 'trans flags NYI'
130133
is('ABC123DEF456GHI'.trans(:c, 'A..Z' => 'x'),'ABCxxxDEFxxxGHI',
131134
'... with :c');
132135

@@ -143,6 +146,7 @@ is('Good&Plenty'.trans('len' => 'x'), 'Good&Pxxxty',
143146
'no flags');
144147

145148
#?rakudo 5 skip 'flags'
149+
#?niecza 5 skip 'trans flags NYI'
146150
is('Good&Plenty'.trans(:s, 'len' => 'x',), 'Good&Pxty',
147151
'squashing depends on replacement repeat, not searchlist repeat');
148152

@@ -188,6 +192,7 @@ is(" <>&".trans(:c, :s, ([' ', '>', '&'] =>
188192
};
189193

190194
#?rakudo skip 'closures and regexes'
195+
#?niecza skip 'closures and regexes'
191196
{
192197
# closures and regexes!
193198
is(
@@ -207,6 +212,7 @@ is(" <>&".trans(:c, :s, ([' ', '>', '&'] =>
207212
}
208213

209214
#?rakudo skip 'tr///, feed operator not implemented'
215+
#?niecza skip 'Action method quote:tr not yet implemented'
210216
{
211217
is(eval('"abc".trans(<== "a" => "A")'), "Abc",
212218
"you're allowed to leave off the (...) named arg parens when you use <==");
@@ -255,6 +261,7 @@ is('ababab'.trans([/ab/, 'aba', 'bab', /baba/] =>
255261
'longest token still holds, even between constant strings and regexes');
256262

257263
# RT #83674
264+
#?niecza skip 'Not sure what is supposed to be going on here'
258265
lives_ok { my @a = 1..2; @a>>.trans((1..2) => (14..15,1..2)); }, 'trans works with Cool signature';
259266

260267
# vim: ft=perl6

0 commit comments

Comments
 (0)