Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.633 kb
0946d16 [gsoc_spectest] moved one-pass-parsing test into spec. Added tests for r...
Auzon authored
1 use v6;
2 use Test;
3
c2b1d56 @TimToady adjust tests for required keyword spacing
TimToady authored
4 plan 5;
0946d16 [gsoc_spectest] moved one-pass-parsing test into spec. Added tests for r...
Auzon authored
5
6 # L<S02/"One-pass parsing">
7
e657f36 @lizmat Another batch of (eval_|)dies_ok -> throws_like
lizmat authored
8 lives_ok { EVAL 'regex { <[ } > ]> }; 1' },
9 "can parse non-backslashed curly and right bracket in cclass";
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
10
1119261 @Mouq Copy Brent Laabs' tests for RT #76988
Mouq authored
11 # RT #74988
12 {
e657f36 @lizmat Another batch of (eval_|)dies_ok -> throws_like
lizmat authored
13 lives_ok { EVAL 'sub if() { "#foo" }; say if();' },
14 "Can call sub if()";
c2b1d56 @TimToady adjust tests for required keyword spacing
TimToady authored
15 dies_ok { EVAL 'sub if() { "#foo" }; say if ;' },
7910209 @jnthn Sync test to expect same error STD gives.
jnthn authored
16 "Calling sub if without parens parsefails due to no-arg say";
c2b1d56 @TimToady adjust tests for required keyword spacing
TimToady authored
17 lives_ok { EVAL 'sub if() { "#foo" }; say if;' },
18 "Calling sub if okay parens as long as not followed by whitespace";
19 dies_ok { EVAL 'say "OK" if+1' },
20 "Using keyword if fails if not followed by whitespace";
1119261 @Mouq Copy Brent Laabs' tests for RT #76988
Mouq authored
21 }
22
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
23 # vim: ft=perl6
Something went wrong with that request. Please try again.