Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (18 sloc) 0.638 kb
560b34f Add tests for 'make' builtin using S05 examples
chrisdolan authored
1 use v6;
2 use Test;
3
87f2ed3 @FROGGS RT #76276 - $() is meant to be $/.ast // $/.Str
FROGGS authored
4 plan 4;
560b34f Add tests for 'make' builtin using S05 examples
chrisdolan authored
5
f33600b smartlink updates
szabgab authored
6 # should be: L<S05/Bracket rationalization/"An B<explicit> reduction using the C<make> function">
7 # L<S05/Bracket rationalization/reduction using the>
560b34f Add tests for 'make' builtin using S05 examples
chrisdolan authored
8
f33600b smartlink updates
szabgab authored
9 # L<S05/Match objects/"Fortunately, when you just want to return a different">
560b34f Add tests for 'make' builtin using S05 examples
chrisdolan authored
10
11 "blah foo blah" ~~ / foo # Match 'foo'
12 { make 'bar' } # But pretend we matched 'bar'
13 /;
1914354 [t/spec] test for RT #76242, "is copy" array parameters
moritz authored
14 ok($/, 'matched');
560b34f Add tests for 'make' builtin using S05 examples
chrisdolan authored
15 is($(), 'bar');
353555b [t/spec] correct make.t - a $/ of a failed match is False, even if ma…
moritz authored
16 is $/.ast, 'bar', '$/.ast';
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
17
87f2ed3 @FROGGS RT #76276 - $() is meant to be $/.ast // $/.Str
FROGGS authored
18 # RT #76276
19 {
20 "foo" ~~ /foo/;
21 is "What kind of $()l am I?", 'What kind of fool am I?', '$() falls back to $/.Str when nothing was made';
22 }
23
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
24 # vim: ft=perl6
Something went wrong with that request. Please try again.