Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix S05-metasyntax/assertions.t
  • Loading branch information
moritz committed Mar 30, 2012
1 parent 6fb747c commit db209e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions S05-metasyntax/assertions.t
Expand Up @@ -2,6 +2,8 @@ use v6;

use Test;

plan 4;

# L<S05/"Extensible metasyntax (C<< <...> >>)"/indicates a code assertion:>

=begin pod
Expand All @@ -17,7 +19,7 @@ be valid perl6.
ok("1" ~~ m/ (\d) <?{$0 < 5}> /, '1 < 5');
ok("5" !~~ m/ (\d) <?{$/[*-1] < 5}>/, '5 !< 5');
ok(" x 254" ~~ m/x (\d+): <?{$/[*-1] < 255}> /, '254 < 255');
ok(" x 255" !~~ m/x (\d+): <?{$/[*-1] < 255}> /, '255 !< 255');
ok("x254" ~~ m/x (\d+): <?{$/[*-1] < 255}> /, '254 < 255');
ok("x255" !~~ m/x (\d+): <?{$/[*-1] < 255}> /, '255 !< 255');
# vim: ft=perl6

0 comments on commit db209e0

Please sign in to comment.