Skip to content

Commit

Permalink
[t/spec] tests for RT #71362, $0, $1 etc. work even for $/ := $something
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@32059 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed Aug 19, 2010
1 parent 3f55d2d commit 046b183
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions S05-match/capturing-contexts.t
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ is_run( q{'aa' ~~ /(.)$1/},
is ($/.orig).rindex('a', 2), 1, 'rindex() works on $/.orig'; is ($/.orig).rindex('a', 2), 1, 'rindex() works on $/.orig';
} }


# RT #71362
{
$/ := 'foobar';
is $0, 'foobar', '$0 works like $/[0], even for non-Match objects';
nok $1.defined, '$1 is not defined';
}

# RT #72956 # RT #72956
{ {
$/ = Any; $/ = Any;
Expand Down

0 comments on commit 046b183

Please sign in to comment.