Whitehawke has asked for the wisdom of the Perl Monks concerning the following question:
Test::More just started displaying some behavior that I've never seen before. My unit tests include this code:
my $main_image = $pdf->main_image_params(); is_deeply($pdf->adjust_to_bounding_box($main_image), undef, "adjust_to_bounding_box returns on no second param" ); # test
Here is what Test::More displays when I run the tests (slightly edited for line length):
# Failed test <path to unit_tests.pl> at line 1131) # got: undef # expected: 'adjust_to_bounding_box returns on no second param'
It's like it doesn't see the 'undef' at all...any ideas on what's up?
UPDATE: If I change the code to this, it works as expected:
my $main_image = $pdf->main_image_params(); my $got = $pdf->adjust_to_bounding_box($main_image); is_deeply($got, undef, "adjust_to_bounding_box returns on no second param" ); # test
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Test::More::is_deeply apparently ignoring an argument?
by Tanktalus (Canon) on Apr 03, 2005 at 15:12 UTC | |
by merlyn (Sage) on Apr 03, 2005 at 15:21 UTC | |
by Whitehawke (Pilgrim) on Apr 03, 2005 at 15:20 UTC | |
by tlm (Prior) on Apr 03, 2005 at 16:27 UTC | |
|
Re: Test::More::is_deeply apparently ignoring an argument?
by blokhead (Monsignor) on Apr 03, 2005 at 15:17 UTC |