Re: Binary-wise is()

2002-12-10 Thread Rafael Garcia-Suarez
Mark Fowler <[EMAIL PROTECTED]> wrote: > > > I'd like to have a custom version of is(), say binary_is(), that > > > reports 'strings 1 and 2 differ at byte 635, got 0x92, expected 0x42' > > > or 'strings 1 differ in length, got 3874, expected 3875'. > > Oooh, that would be really helpful. I often

Re: Binary-wise is()

2002-11-28 Thread Tony Bowden
On Wed, Nov 27, 2002 at 10:35:33PM +, Mark Fowler wrote: > See also Acme::Test::Buffy (lame example testing module), and > Test::Builder::Tester for help testing Test::Binary. We found that for testing Test::Builder objects, it was handy to do things like: *orig_ok = \&Test::Builder::ok;

Re: Binary-wise is()

2002-11-27 Thread Mark Fowler
> On Wed, Nov 27, 2002 at 03:24:51PM +0100, Rafael Garcia-Suarez wrote: > > I'd like to have a custom version of is(), say binary_is(), that > > reports 'strings 1 and 2 differ at byte 635, got 0x92, expected 0x42' > > or 'strings 1 differ in length, got 3874, expected 3875'. Oooh, that would be

Re: Binary-wise is()

2002-11-27 Thread Michael G Schwern
On Wed, Nov 27, 2002 at 03:24:51PM +0100, Rafael Garcia-Suarez wrote: > I'd like to have a custom version of is(), say binary_is(), that > reports 'strings 1 and 2 differ at byte 635, got 0x92, expected 0x42' > or 'strings 1 differ in length, got 3874, expected 3875'. > > Is there already some modu