Rodent of Unusual Size writes:

> Adrian Howard wrote:
> 
> > Test::Warn should do the job:
> > 
> > use Test::Warn;
> > warnings_like { carp "Danger! Danger!" } qr/^Danger! Danger!/;
> 
> unfortunately, it doesn't appear to be a default part of
> a vanilla 5.6 installation, and i'm loath to require a
> module used only during installation.

Indeed it would be irritating for people to have to install a module
just so they can test your module.  But that's no reason to skip the
test for those who do have it installed.

Couldn't you put in a conditional test that only executes if require-ing
Test::Warn succeeds?

Smylers

Reply via email to