I should be testing (perhaps via a mock object or similar), that my function does not do anything expensive (e.g., call a database function) to return a result when called in void context.Such as playing nethack? :)
In reply to Re^3: Unit testing, context and wantarray
by eyepopslikeamosquito
in thread Unit testing, context and wantarray
by mikeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |