Skip to content

Commit

Permalink
Tests for RT #126438.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Oct 27, 2015
1 parent 7f43444 commit c49587f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion S05-metachars/line-anchors.t
Expand Up @@ -14,7 +14,7 @@ be valid perl6.

# L<S05/New metacharacters/"^^ and $$ match line beginnings and endings">

plan 19;
plan 23;

my $str = q{abc
def
Expand All @@ -40,4 +40,16 @@ ok( $str ~~ m/ghi$$/, 'ghi EOL' );
ok( $str ~~ m/ghi$/, 'ghi EOS' );
ok( $str ~~ m/^abc$$\n^^d.*f$$\n^^ghi$/, 'All dot' );

# RT #126438
{
throws-like q[/ ^+ /], X::Syntax::Regex::NonQuantifiable,
'error when quantifying ^';
throws-like q[/ ^^+ /], X::Syntax::Regex::NonQuantifiable,
'error when quantifying ^^';
throws-like q[/ $+ /], X::Syntax::Regex::NonQuantifiable,
'error when quantifying $';
throws-like q[/ $$+ /], X::Syntax::Regex::NonQuantifiable,
'error when quantifying $$';
}

# vim: ft=perl6

0 comments on commit c49587f

Please sign in to comment.