Re: Test-Regex-0.01.tar.gz

2004-08-02 Thread Ricardo SIGNES
* Rafael Garcia-Suarez <[EMAIL PROTECTED]> [2004-08-02T10:12:22]
> What kind of useful diagnostics could this module emit in case of
> failure? IMO they have to be precisely detailed.

# failed comparisons follow:
# expected $1: (610)
#  got $1: 691
# expected $4: x258
#  got $4: 258

That's just off the cuff, but I think that's probably as reasonable as
it gets, unless you want to (ugh!) diag nothing.

-- 
rjbs


pgpkKwfD61N4c.pgp
Description: PGP signature


Re: Test-Regex-0.01.tar.gz

2004-08-02 Thread Rafael Garcia-Suarez
Andy Lester wrote:
> Lets you check the dollar vars of your results
> 
> matches_are( "dog food", qr/dog(.+)/, 1=>"food", "Matched OK" );
> 
> or
> 
> matches_are( "first middle end", qr/middle|center/,
> "&" => "middle", "`" => "first " );
> 
> Eventually we'll handle the punc vars, but for now this will do.
> 
> Thoughts?

What kind of useful diagnostics could this module emit in case of
failure? IMO they have to be precisely detailed.


Test-Regex-0.01.tar.gz

2004-08-02 Thread Andy Lester
Started a new module, Test::Regex, as a proof of concept.  Not sure it's
something that's useful (although to at least one person it is), or if
it should be rolled into Test::More to avoid code duplication, or what.

Lets you check the dollar vars of your results

matches_are( "dog food", qr/dog(.+)/, 1=>"food", "Matched OK" );

or

matches_are( "first middle end", qr/middle|center/,
"&" => "middle", "`" => "first " );

Eventually we'll handle the punc vars, but for now this will do.

Thoughts?

xoa


- Forwarded message from PAUSE <[EMAIL PROTECTED]> -

The uploaded file

Test-Regex-0.01.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/P/PE/PETDANCE/Test-Regex-0.01.tar.gz
  size: 2890 bytes
   md5: 565b7e75907b621dfc411bb967b38fe7

No action is required on your part
Request entered by: PETDANCE (Andy Lester)
Request entered on: Mon, 02 Aug 2004 03:14:00 GMT
Request completed:  Mon, 02 Aug 2004 03:15:14 GMT

Thanks,
-- 
paused, v460


- End forwarded message -

-- 
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance