RE: New version of Test::LongString

2004-12-10 Thread Clayton, Nik
 I use Text::Differences for this, as it will show which lines are 
 different, rather than just the first 50 characters. Much 
 easier for me to diagnose problems.

Something I put at the top of a lot of my test scripts is:

if(eval require Test::Differences; 1) {
no warnings 'redefine';
*is_deeply = \Test::Differences::eq_or_diff;
}

I think (BICBW) that it was Richard Clamp who first suggested this
idiom.

N


New version of Test::LongString

2004-12-09 Thread Andy Lester
RGS has just released a new version of Test::LongString with patches I
made last night.  I added a new function contains_string(), and lots
more docs.

Test::LongString is one of those modules that you should be using if
you're doing testing against large data elements, especially web pages.
There are now examples in the docs that I hope make you say Wow, this
is cool, thanks RGS!

http://search.cpan.org/dist/Test-LongString
http://search.cpan.org/~rgarcia/Test-LongString-0.05/lib/Test/LongString.pm

xoxo,
Andy

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


Re: New version of Test::LongString

2004-12-09 Thread David Wheeler
On Dec 9, 2004, at 7:22 AM, Andy Lester wrote:
Test::LongString is one of those modules that you should be using if
you're doing testing against large data elements, especially web pages.
There are now examples in the docs that I hope make you say Wow, this
is cool, thanks RGS!
I use Text::Differences for this, as it will show which lines are 
different, rather than just the first 50 characters. Much easier for me 
to diagnose problems.

Regards,
David


Re: New version of Test::LongString

2004-12-09 Thread David Wheeler
On Dec 9, 2004, at 1:48 PM, Rafael Garcia-Suarez wrote:
It's probably better adapted to text pages.
I wrote Test::LongString to debug and test a
serialization/deserialization protocol that was
producing long binary strings. For this purpose,
it was most helpful :)
Ah, yeah. Test::Differences is line-oriented. So if you have one line, 
Test::LongString would be much better. :-)

David


Re: New version of Test::LongString

2004-12-09 Thread Rafael Garcia-Suarez
David Wheeler wrote in perl.qa :
 Test::LongString is one of those modules that you should be using if
 you're doing testing against large data elements, especially web pages.
 There are now examples in the docs that I hope make you say Wow, this
 is cool, thanks RGS!

 I use Text::Differences for this, as it will show which lines are 
 different, rather than just the first 50 characters. Much easier for me 
 to diagnose problems.

It's probably better adapted to text pages.
I wrote Test::LongString to debug and test a
serialization/deserialization protocol that was
producing long binary strings. For this purpose,
it was most helpful :)