Skip to content

Commit fff18c3

Browse files
committed
Various Rakudo unfudges.
1 parent 4f9bd38 commit fff18c3

File tree

3 files changed

+10
-23
lines changed

3 files changed

+10
-23
lines changed

S02-literals/listquote.t

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ eval_dies_ok '({:a<1>, :b(2)} <a b c>)', '{...} <...> parsefail';
2929
ok( ?((1 | 3) < 3), '(...) < 3 no parsefail');
3030

3131
#?pugs todo 'parsing bug'
32-
#?rakudo todo 'parsing'
3332
eval_dies_ok '(1 | 3)<3', '()<3 parsefail';
3433

3534
# WRONG: should be parsed as print() < 3

S02-literals/quoting.t

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
144144
};
145145
146146
# L<S02/Interpolating into a single-quoted string/using the \qq>
147-
#?rakudo skip 'q[..] with variations'
147+
148148
{ # \qq[] constructs interpolate in q[]
149149
my ( @q1, @q2, @q3, @q4 ) = ();
150150
@q1 = q[$foo \qq[$bar]];
@@ -197,7 +197,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
197197
is(@q[1], '$bar', '...');
198198
};
199199
200-
#?rakudo skip 'q:w'
200+
201201
{ # adverb variation
202202
my @q = ();
203203
@q = (q:w/$foo $bar/);
@@ -206,7 +206,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
206206
is(@q[1], '$bar', "...");
207207
};
208208
209-
#?rakudo skip 'q:w'
210209
{ # whitespace sep aration does not break quote constructor
211210
# L<S02/Whitespace before adverbs/Whitespace is allowed between the "q" and its adverb: q :w /.../.>
212211
my @q = ();
@@ -216,8 +215,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
216215
is(@q[1], '$bar', "...");
217216
};
218217
219-
220-
#?rakudo skip 'quoting with adverbs'
221218
{ # qq:w,Interpolating quote constructor with words adverb
222219
# L<S02/Adverbs on quotes/"Split result on words (no quote protection)">
223220
my (@q1, @q2) = ();
@@ -231,7 +228,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
231228
is(~@q2, 'FOO "gorch BAR"', "long form output is the same as the short");
232229
};
233230
234-
#?rakudo skip 'quoting with adverbs'
235231
#?niecza todo
236232
{ # qq:ww, interpolating L<S02/Literals/double angles do interpolate>
237233
# L<S02/Forcing item context/"implicit split" "shell-like fashion">
@@ -241,6 +237,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
241237
@q3 = <<$foo "gorch $bar">>; # texas
242238
@q4 = qq:quotewords/$foo "gorch $bar"/; # long
243239
240+
#?rakudo 4 todo 'some ww issue'
244241
is(+@q1, 2, 'qq:ww// correct number of elements');
245242
is(+@q2, 2, 'french double angle');
246243
is(+@q3, 2, 'texas double angle');
@@ -260,7 +257,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
260257
is <<a $rt65654 z>>.elems, 4, 'interpolate variable with spaces (Texas)';
261258
}
262259
263-
#?rakudo skip '«...»'
260+
#?rakudo todo '«...»'
264261
#?niecza todo
265262
{
266263
#L<S02/Forcing item context/"relationship" "single quotes" "double angles">
@@ -364,7 +361,6 @@ FOO
364361
is(@q[0].perl, (p => "moose").perl, ":pair<anglequoted>");
365362
};
366363
367-
#?rakudo skip '\c97 etc'
368364
{ # weird char escape sequences
369365
is("\c97", "a", '\c97 is "a"');
370366
is("\c102oo", "foo", '\c102 is "f", works next to other letters');
@@ -376,7 +372,8 @@ FOO
376372
377373
is("\x41", "A", 'hex interpolation - \x41 is "A"');
378374
is("\o101", "A", 'octal interpolation - \o101 is also "A"' );
379-
375+
376+
#?rakudo 3 skip '\c@ etc'
380377
is("\c@", "\0", 'Unicode code point "@" converts correctly to "\0"');
381378
is("\cA", chr(1), 'Unicode "A" is #1!');
382379
is("\cZ", chr(26), 'Unicode "Z" is chr 26 (or \c26)');
@@ -420,7 +417,6 @@ Hello, World
420417
}
421418
422419
# q:b
423-
#?rakudo skip 'quoting adverbs'
424420
#?pugs skip 'parsefail'
425421
{
426422
my $t = q:b /\n\n\n/;
@@ -433,9 +429,8 @@ Hello, World
433429
}
434430
435431
# q:x
436-
#?rakudo skip 'q:x'
437432
{
438-
my $result = %*VM.perl ~~ /MSWIN32/ ?? "hello\r\n" !! "hello\n";
433+
my $result = $*OS ~~ /:i win32/ ?? "hello\r\n" !! "hello\n";
439434
is q:x/echo hello/, $result, "Testing for q:x operator.";
440435
}
441436
# utf8
@@ -446,21 +441,20 @@ Hello, World
446441
is q:x/echo 一/, "\n", "Testing for q:x operator. (utf8)";
447442
}
448443
449-
#?rakudo skip 'qq:x'
450444
{
451445
my $world = 'world';
452-
is qq:x/echo hello $world/, "hello world\n", 'Testing qq:x operator';
446+
ok qq:x/echo hello $world/ ~~ /^'hello world'\n$/, 'Testing qq:x operator';
453447
}
454448
455-
#?rakudo skip 'q:x assigned to array'
449+
#?rakudo todo 'q:x assigned to array'
456450
#?niecza todo ':x'
457451
#?pugs todo
458452
{
459453
my @two_lines = q:x/echo hello ; echo world/;
460454
is @two_lines, ("hello\n", "world\n"), 'testing q:x assigned to array';
461455
}
462456
463-
#?rakudo skip 'q:x assigned to array'
457+
#?rakudo todo 'q:x assigned to array'
464458
#?niecza todo ':x'
465459
#?pugs todo
466460
{
@@ -472,7 +466,6 @@ Hello, World
472466
473467
# L<S02/Adverbs on quotes/"Interpolate % vars">
474468
# q:h
475-
#?rakudo skip 'quoting adverbs'
476469
#?niecza todo
477470
{
478471
# Pugs can't parse q:h currently.
@@ -483,7 +476,6 @@ Hello, World
483476
}
484477
485478
# q:f
486-
#?rakudo skip 'quoting adverbs'
487479
#?niecza skip '& escape'
488480
{
489481
my sub f { "hello" };
@@ -504,15 +496,13 @@ Hello, World
504496
}
505497
506498
# q:a
507-
#?rakudo skip 'quoting adverbs'
508499
{
509500
my @t = qw/a b c/;
510501
my $s = q:a /@t[]/;
511502
is $s, ~@t, "Testing for q:a operator.";
512503
}
513504
514505
# q:s
515-
#?rakudo skip 'quoting adverbs'
516506
{
517507
my $s = "someone is laughing";
518508
my $t = q:s /$s/;
@@ -524,7 +514,6 @@ Hello, World
524514
}
525515
526516
# multiple quoting modes
527-
#?rakudo skip 'quoting adverbs'
528517
{
529518
my $s = 'string';
530519
my @a = <arr1 arr2>;

S03-operators/subscript-vs-lt.t

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ plan 4;
1616

1717
eval_lives_ok "1 <2", "infix less-than (<) requires whitespace before.";
1818
eval_lives_ok "1 < 2" , "infix less-than (<) requires whitespace before.";
19-
#?rakudo 2 todo 'parsing'
2019
#?pugs 2 todo 'parsing'
2120
eval_dies_ok("1< 2", "infix less-than (<) requires whitespace before, so this is a parse error.");
2221
eval_dies_ok("1<2", "infix less-than (<) requires whitespace before, so this is a parse error.");

0 commit comments

Comments
 (0)