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
In reply to Test::More::is_deeply apparently ignoring an argument? by Whitehawke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |