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 find myself writing tests
> which just currently do a
> 
>   ok($slurp eq $test_data, "files match");
> 
> as is() doesn't produce very helpful output
> 
> > See http://www.pobox.com/~schwern/talks/Writing_A_Test_Library/full_slides/
> > for details about using Test::Builder.
> 
> <plug>See also Acme::Test::Buffy (lame example testing module), and
> Test::Builder::Tester for help testing Test::Binary.</plug>

Thanks. See http://search.cpan.org/author/RGARCIA/Test-LongString-0.01/ for
a first version.

Reply via email to