Skip to content

Commit

Permalink
Test for ro binding
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Aug 21, 2010
1 parent 36516a9 commit 5de4fa0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test2.pl
Expand Up @@ -7,4 +7,11 @@
ok '\\' ~~ /\\/, '\\\\ in regex matches literal \\';
ok 'a' ~~ /\x61/, '\x61 in regex matches literal a';

ok 'xy' ~~ /x <?> y/, '<?> matches null string';

my $a = 2;
my $b ::= $a;
$a = 5;
is $b, 2, "ro binding loses original container";

done-testing;

0 comments on commit 5de4fa0

Please sign in to comment.