more useful options | |
PerlMonks |
Re: Unit testing built-in functionsby davidrw (Prior) |
on Nov 08, 2006 at 23:12 UTC ( [id://582994]=note: print w/replies, xml ) | Need Help?? |
per perldoc for unlink, it returns the number of files deleted .. so can you just change the calls to something like this?
Your unit tests could also check for both the existance before the unlink, and non-existence afterward ...
In Section
Seekers of Perl Wisdom
|
|