in reply to Unit testing built-in functions
Your unit tests could also check for both the existance before the unlink, and non-existence afterward ...if( unlink( $filename ) != 1 ){ die "couldn't unlink '$filename': $!; } # or: unlink( $filename ) or die "couldn't unlink '$filename': $!;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unit testing built-in functions
by ikegami (Patriarch) on Nov 09, 2006 at 00:01 UTC | |
by aijin (Monk) on Nov 09, 2006 at 01:07 UTC |