good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Unit testing, context and wantarrayby mikeman (Acolyte) |
on Aug 13, 2011 at 10:55 UTC ( [id://920162]=perlquestion: print w/replies, xml ) | Need Help?? |
mikeman has asked for the wisdom of the Perl Monks concerning the following question: When unit testing, how do I test that a function returns nothing when called in void context? For example, I can easily test if the following function returns a list or a scalar containing 'value'. But as soon as I test its return value, I am no longer calling the function in void context.
Thanks, and sorry if this is a dumb question!
Back to
Seekers of Perl Wisdom
|
|