The interesting part isn't the if part. It's the expression.
If that's not worth testing, so be it—but I've fixed enough bugs in file-handling code that I don't assume that relative paths are correct just because they look like constant expressions.
Improve your skills with Modern Perl: the free book.
In reply to Re^2: Unit testing OS rich code
by chromatic
in thread Unit testing OS rich code
by Voronich
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |