@@ -144,7 +144,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
144
144
};
145
145
146
146
# L<S02/Interpolating into a single-quoted string/using the \qq>
147
- #?rakudo skip 'q[..] with variations'
147
+
148
148
{ # \qq[] constructs interpolate in q[]
149
149
my ( @ q1 , @ q2 , @ q3 , @ q4 ) = ();
150
150
@ q1 = q [ $foo \qq[$bar] ] ;
@@ -197,7 +197,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
197
197
is (@ q [1 ], ' $bar' , ' ...' );
198
198
} ;
199
199
200
- #?rakudo skip 'q:w'
200
+
201
201
{ # adverb variation
202
202
my @ q = ();
203
203
@ q = (q :w / $foo $bar / );
@@ -206,7 +206,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
206
206
is (@ q [1 ], ' $bar' , " ..." );
207
207
} ;
208
208
209
- #?rakudo skip 'q:w'
210
209
{ # whitespace sep aration does not break quote constructor
211
210
# L<S02/Whitespace before adverbs/Whitespace is allowed between the "q" and its adverb: q :w /.../.>
212
211
my @ q = ();
@@ -216,8 +215,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
216
215
is (@ q [1 ], ' $bar' , " ..." );
217
216
} ;
218
217
219
-
220
- #?rakudo skip 'quoting with adverbs'
221
218
{ # qq:w,Interpolating quote constructor with words adverb
222
219
# L<S02/Adverbs on quotes/"Split result on words (no quote protection)">
223
220
my (@ q1 , @ q2 ) = ();
@@ -231,7 +228,6 @@ Note that non-ASCII tests are kept in quoting-unicode.t
231
228
is (~ @ q2 , ' FOO "gorch BAR"' , " long form output is the same as the short" );
232
229
} ;
233
230
234
- #?rakudo skip 'quoting with adverbs'
235
231
#?niecza todo
236
232
{ # qq:ww, interpolating L<S02/Literals/double angles do interpolate>
237
233
# 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
241
237
@ q3 = <<$foo "gorch $bar" >> ; # texas
242
238
@ q4 = qq :quotewords / $ foo "gorch $ bar "/ ; # long
243
239
240
+ # ?rakudo 4 todo 'some ww issue'
244
241
is (+ @ q1 , 2 , ' qq:ww// correct number of elements' );
245
242
is (+ @ q2 , 2 , ' french double angle' );
246
243
is (+ @ q3 , 2 , ' texas double angle' );
@@ -260,7 +257,7 @@ Note that non-ASCII tests are kept in quoting-unicode.t
260
257
is < <a $rt65654 z >>. elems , 4 , ' interpolate variable with spaces (Texas)' ;
261
258
}
262
259
263
- #?rakudo skip '«...»'
260
+ #?rakudo todo '«...»'
264
261
#?niecza todo
265
262
{
266
263
# L<S02/Forcing item context/"relationship" "single quotes" "double angles">
364
361
is (@ q [0 ]. perl , (p => " moose" ). perl , " :pair<anglequoted>" );
365
362
} ;
366
363
367
- #?rakudo skip '\c97 etc'
368
364
{ # weird char escape sequences
369
365
is (" \c97" , " a" , ' \c97 is "a"' );
370
366
is (" \c102oo" , " foo" , ' \c102 is "f", works next to other letters' );
376
372
377
373
is (" \x41" , " A" , ' hex interpolation - \x41 is "A"' );
378
374
is (" \o101" , " A" , ' octal interpolation - \o101 is also "A"' );
379
-
375
+
376
+ # ?rakudo 3 skip '\c@ etc'
380
377
is (" \c@" , " \0" , ' Unicode code point "@" converts correctly to "\0"' );
381
378
is (" \cA" , chr (1 ), ' Unicode "A" is #1!' );
382
379
is (" \cZ" , chr (26 ), ' Unicode "Z" is chr 26 (or \c26)' );
@@ -420,7 +417,6 @@ Hello, World
420
417
}
421
418
422
419
# q:b
423
- #?rakudo skip 'quoting adverbs'
424
420
#?pugs skip 'parsefail'
425
421
{
426
422
my $ t = q :b / \n\n\n / ;
@@ -433,9 +429,8 @@ Hello, World
433
429
}
434
430
435
431
# q:x
436
- #?rakudo skip 'q:x'
437
432
{
438
- my $ result = % * VM . perl ~~ /MSWIN32 / ?? " hello\r\n " !! " hello\n " ;
433
+ my $ result = $ * OS ~~ /:i win32 / ?? " hello\r\n " !! " hello\n " ;
439
434
is q :x / echo hello / , $ result , " Testing for q:x operator." ;
440
435
}
441
436
# utf8
@@ -446,21 +441,20 @@ Hello, World
446
441
is q :x / echo 一 / , " 一\n " , " Testing for q:x operator. (utf8)" ;
447
442
}
448
443
449
- #?rakudo skip 'qq:x'
450
444
{
451
445
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' ;
453
447
}
454
448
455
- #?rakudo skip 'q:x assigned to array'
449
+ #?rakudo todo 'q:x assigned to array'
456
450
#?niecza todo ':x'
457
451
#?pugs todo
458
452
{
459
453
my @ two_lines = q :x / echo hello ; echo world / ;
460
454
is @ two_lines , (" hello\n " , " world\n " ), ' testing q:x assigned to array' ;
461
455
}
462
456
463
- #?rakudo skip 'q:x assigned to array'
457
+ #?rakudo todo 'q:x assigned to array'
464
458
#?niecza todo ':x'
465
459
#?pugs todo
466
460
{
@@ -472,7 +466,6 @@ Hello, World
472
466
473
467
# L<S02/Adverbs on quotes/" Interpolate % vars" >
474
468
# q:h
475
- #?rakudo skip 'quoting adverbs'
476
469
#?niecza todo
477
470
{
478
471
# Pugs can't parse q:h currently.
@@ -483,7 +476,6 @@ Hello, World
483
476
}
484
477
485
478
# q:f
486
- #?rakudo skip 'quoting adverbs'
487
479
#?niecza skip '& escape'
488
480
{
489
481
my sub f { " hello" };
@@ -504,15 +496,13 @@ Hello, World
504
496
}
505
497
506
498
# q:a
507
- #?rakudo skip 'quoting adverbs'
508
499
{
509
500
my @ t = qw / a b c / ;
510
501
my $ s = q :a / @t[] / ;
511
502
is $ s , ~ @ t , " Testing for q:a operator." ;
512
503
}
513
504
514
505
# q:s
515
- #?rakudo skip 'quoting adverbs'
516
506
{
517
507
my $ s = " someone is laughing" ;
518
508
my $ t = q :s / $s / ;
@@ -524,7 +514,6 @@ Hello, World
524
514
}
525
515
526
516
# multiple quoting modes
527
- #?rakudo skip 'quoting adverbs'
528
517
{
529
518
my $ s = ' string' ;
530
519
my @ a = <arr1 arr2 >;
0 commit comments