Google Groups Home
Help | Sign in
More t/p6rules tests
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Dino Morelli  
View profile
 More options May 18 2005, 4:35 pm
Newsgroups: perl.perl6.internals
From: dmore...@reactorweb.net (Dino Morelli)
Date: Wed, 18 May 2005 16:35:09 -0400 (EDT)
Local: Wed, May 18 2005 4:35 pm
Subject: Re: [PATCH] More t/p6rules tests

On Wed, 18 May 2005, Dino Morelli wrote:
>Patch file for MANIFEST and cclass.t, and new file escape.t attached.

Looks like I missed the escape.t attachment.

-Dino

--
 .~.    Dino Morelli
 /V\    email: dmore...@reactorweb.net
/( )\   weblog: http://categorically.net/d/blog/
^^-^^   preferred distro: Debian GNU/Linux  http://www.debian.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dino Morelli  
View profile
 More options May 18 2005, 4:52 pm
Newsgroups: perl.perl6.internals
From: dmore...@reactorweb.net (Dino Morelli)
Date: Wed, 18 May 2005 16:52:23 -0400 (EDT)
Local: Wed, May 18 2005 4:52 pm
Subject: Re: [PATCH] More t/p6rules tests

On Wed, 18 May 2005, Dino Morelli wrote:
>On Wed, 18 May 2005, Dino Morelli wrote:

>>Patch file for MANIFEST and cclass.t, and new file escape.t attached.

>Looks like I missed the escape.t attachment.

The list server keeps eating my attached homework. Won't let me attach a
.t file.

Trying to stick it in the body of the message this time...

NEW file: t/p6rules/escape.t
-------------------------------------------------------------------------
use strict;
use warnings;
use Parrot::Test tests => 16;
use Parrot::Test::PGE;

p6rule_isnt('abcdef', 'a\s+f', 'whitespace');
p6rule_is  ("ab  cdef", 'ab\s+cdef', 'whitespace');
p6rule_is  ('abcdef', 'a\S+f', 'not whitespace');
p6rule_isnt("ab cdef", 'a\S+f', 'not whitespace');

p6rule_isnt('a=[ *f', 'a\w+f', 'word character');
p6rule_is  ("abcdef", 'a\w+f', 'word character');
p6rule_is  ('a&%- f', 'a\W+f', 'not word character');
p6rule_isnt("abcdef", 'a\W+f', 'not word character');

p6rule_isnt('abcdef', 'a\d+f', 'digit');
p6rule_is  ("ab42cdef", 'ab\d+cdef', 'digit');
p6rule_is  ('abcdef', 'a\D+f', 'not digit');
p6rule_isnt("ab0cdef", 'a\D+f', 'not digit');

p6rule_isnt('abcdef', 'a\n+f', 'logical newline');
p6rule_is  ("ab\n\ncdef", 'ab\n+cdef', 'logical newline');
p6rule_is  ('abcdef', 'a\N+f', 'not logical newline');
p6rule_isnt("ab\ncdef", 'a\N+f', 'not logical newline');

# dont forget to change the number of tests :-)
-------------------------------------------------------------------------

-Dino

--
 .~.    Dino Morelli
 /V\    email: dmore...@reactorweb.net
/( )\   weblog: http://categorically.net/d/blog/
^^-^^   preferred distro: Debian GNU/Linux  http://www.debian.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Spier  
View profile
 More options May 19 2005, 2:09 am
Newsgroups: perl.perl6.internals
From: rsp...@pobox.com (Robert Spier)
Date: Wed, 18 May 2005 23:09:23 -0700
Local: Thurs, May 19 2005 2:09 am
Subject: Re: [PATCH] More t/p6rules tests

> The list server keeps eating my attached homework. Won't let me attach a
> .t file.

This is because your mailer is declaring it to be an
application/x-troff file.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Patrick R. Michaud  
View profile
 More options May 19 2005, 2:40 pm
Newsgroups: perl.perl6.internals
From: pmich...@pobox.com (Patrick R. Michaud)
Date: Thu, 19 May 2005 13:40:49 -0500
Local: Thurs, May 19 2005 2:40 pm
Subject: Re: [PATCH] More t/p6rules tests

On Wed, May 18, 2005 at 03:50:07PM -0400, Dino Morelli wrote:
> I moved the \N test out of t/p6rules/cclass.t and made a new file for
> escape tests: escape.t, currently containing tests for \s \S \w \W \d \D
> \n \N

> Patch file for MANIFEST and cclass.t, and new file escape.t attached.

I've been out of town the past couple of days -- sorry for the delay.

This and previously submitted patches applied, many thanks!

Pm


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google