in reply to Test::More::is_deeply apparently ignoring an argument?
Test::More::is_deeply is not ignoring an argument - that argument is never reaching it. That's because, in list (array) context (i.e., "wantarray" returns true), it is returning an empty list.
Try:
And compare with:is_deeply(scalar $pdf->adjust_to_bounding_box($main_image), undef, "adjust_to_bounding_box returns on no second param" ); # test
Hope that helps.my @got = $pdf->adjust_to_bounding_box($main); # @got should be an empty list.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test::More::is_deeply apparently ignoring an argument?
by merlyn (Sage) on Apr 03, 2005 at 15:21 UTC | |
|
Re^2: Test::More::is_deeply apparently ignoring an argument?
by Whitehawke (Pilgrim) on Apr 03, 2005 at 15:20 UTC | |
by tlm (Prior) on Apr 03, 2005 at 16:27 UTC |