Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add tests for quote starter being escapable
  • Loading branch information
Mouq committed Apr 19, 2014
1 parent 637d31a commit b6097eb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S02-literals/quoting.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 156;
plan 159;

my $foo = "FOO";
my $bar = "BAR";
Expand Down Expand Up @@ -577,6 +577,12 @@ is <<<\>'n'>>.join('|'), '<>|n', 'texas quotes edge case';
ok $error ~~ / '\'I\' is not a valid number' /, "\\c followed by non-number";
}
{
eval_dies_ok 'q< < >', "Unmatched openers and closers fails to parse";
is q< \> >, " > ", "Escaped closer produces the opener unescaped";
is q< \< >, " < ", "Escaped opener produces the opener unescaped";
}
done;
# vim: ft=perl6

0 comments on commit b6097eb

Please sign in to comment.