Skip to content

Commit

Permalink
[t/spec] Test from Jason Cole
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@28898 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
kyle committed Oct 26, 2009
1 parent 12cdb6d commit 819d1c6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion S05-match/blocks.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 21;
plan *;

=begin description
Expand Down Expand Up @@ -69,6 +69,12 @@ ok !defined($/), '$/ still undef in the outer block';

{
given '-Wall' {
if $_ ~~ /al/ {
ok $/ eq 'al', '$/ is properly set with explicit $_ in a given { } block';
}
else {
flunk 'regex did not match - $/ is properly set with explicit $_ in a given { } block';
}
if /\w+/ {
#?rakudo todo 'RT 67864'
ok $/ eq 'Wall', '$/ is properly set in a given { } block';
Expand Down Expand Up @@ -102,4 +108,6 @@ ok !defined($/), '$/ still undef in the outer block';
}
}

done_testing;

# vim: ft=perl6

0 comments on commit 819d1c6

Please sign in to comment.