And that checks the scalar return value. If you want to check the list return value separately:is_deeply(scalar $pdf->adjust_to_bounding_box($main_image), undef, "adjust_to_bounding_box returns on no second param" ); # test
is_deeply([$pdf->adjust_to_bounding_box($main_image)], [], "adjust_to_bounding_box returns on no second param (list con +text)" ); # test
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^2: Test::More::is_deeply apparently ignoring an argument?
by merlyn
in thread Test::More::is_deeply apparently ignoring an argument?
by Whitehawke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |