On Sat, 15 Dec 2001 02:41:13 -0500
Barrie Slaymaker <[EMAIL PROTECTED]> wrote:

> > IMHO Test::Differences' benefit is its mix-in nature. Changing
> > each is_deeply() to eq_or_diff_data() hand by hand "if not ok" 
> > seems a little hassle to me.
> 
> Why is it more effort than doing something like:
> 
>     perl -ipe 's/is_deeply/eq_or_diff' t/*.t

Again, IMHO we can get the benefit of Test::Differences like this:

* First, test the code with Test::More::is()

  is $complicated_long_text, $expected;

* but it fails.

Test::More's output is too long for me to find what's the
differecne with the two.

* Then we want the output switch to Text::Diff's one.

Add something like:

  use Test::Differences qw(:globally_override_test_more);

Or with command line:

  perl -Mblib -MTest::Differences=:globally... t/foo.t

Switching each function line by line, or adding magical C<goto>
shortcut in the top of script will do. But I wish there's a handy
way to do it.

Thanks.


--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>

Reply via email to