Skip to content

Commit

Permalink
[spec] tests for single quotes (from from_perl6_rules)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@20883 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed Jun 19, 2008
1 parent af6b45d commit 3fa34aa
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions S05-quotes/single-quotes.t
@@ -0,0 +1,28 @@
use v6;
use Test;

=begin description
This file was derived from the perl5 CPAN module Perl6::Rules,
version 0.3 (12 Apr 2004), file t/qinterp.t.
It has (hopefully) been, and should continue to be, updated to
be valid perl6.
=end description

plan 5;

# L<S05/Simplified lexical parsing of patterns/Sequences of one or more glyphs of either type>


ok("ab cd" ~~ m/a 'b c' d/, 'ab cd 1');
ok(!( "abcd" ~~ m/a 'b c' d/ ), 'not abcd 1');
ok("ab cd" ~~ m/ab ' ' c d/, 'ab cd 2');

ok 'abab' ~~ m/'ab' **{2}/, "Single quotes group";

#?pugs skip bug
ok("ab/cd" ~~ m/ab '/' c d/, 'ab/cd');

# vim: ft=perl6

0 comments on commit 3fa34aa

Please sign in to comment.