summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Ernst <bobernst@cpan.org>2012-11-17 22:14:53 +0000
committerJames E Keenan <jkeenan@cpan.org>2012-11-25 19:53:27 -0500
commit66745c0bdc21eaccfcea80c9af21d23eadd859ab (patch)
treed20978b4b3f88d15d012a2ea4e212f98470e025b
parentaf1b6079f4f58b6c4af6ba7874b8b96fa7dfd92d (diff)
downloadperl-66745c0bdc21eaccfcea80c9af21d23eadd859ab.tar.gz
Add descriptions to tests for fh.t
-rw-r--r--t/op/fh.t16
1 files changed, 8 insertions, 8 deletions
diff --git a/t/op/fh.t b/t/op/fh.t
index 16ba186a91..afca57bf7b 100644
--- a/t/op/fh.t
+++ b/t/op/fh.t
@@ -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;');