diff options
author | Bob Ernst <bobernst@cpan.org> | 2012-11-17 22:14:53 +0000 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2012-11-25 19:53:27 -0500 |
commit | 66745c0bdc21eaccfcea80c9af21d23eadd859ab (patch) | |
tree | d20978b4b3f88d15d012a2ea4e212f98470e025b | |
parent | af1b6079f4f58b6c4af6ba7874b8b96fa7dfd92d (diff) | |
download | perl-66745c0bdc21eaccfcea80c9af21d23eadd859ab.tar.gz |
Add descriptions to tests for fh.t
-rw-r--r-- | t/op/fh.t | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -12,18 +12,18 @@ plan tests => 8; $|=1; my $a = "SYM000"; -ok(!defined(fileno($a))); -ok(!defined *{$a}); +ok(!defined(fileno($a)), 'initial file handle is undefined'); +ok(!defined *{$a}, 'initial typeglob of file handle is undefined'); select select $a; -ok(defined *{$a}); +ok(defined *{$a}, 'typeglob of file handle defined after select'); $a++; -ok(!close $a); -ok(!defined *{$a}); +ok(!close $a, 'close does not succeed with incremented file handle'); +ok(!defined *{$a}, 'typeglob of file handle not defined after increment'); -ok(open($a, ">&STDOUT")); -ok(defined *{$a}); +ok(open($a, ">&STDOUT"), 'file handle used with open of standard output'); +ok(defined *{$a}, 'typeglob of file handle defined after opening standard output'); -ok(close $a); +ok(close $a, 'close standard output via file handle;'); |