background image
<< Basic bad input example | Catching Warnings >>
<< Basic bad input example | Catching Warnings >>
Tests with warnings
Tests with warnings
Test::More used to have a problem testing undefined values
use Test::More tests => 1;
is( undef, undef, 'undef is undef' );
The test will pass, but there would be warnings.
The user will see them, but the test will not.
There's a whole bunch of these in Test-Simple/t/undef.t