This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add descriptions to tests for fh.t
authorBob Ernst <bobernst@cpan.org>
Sat, 17 Nov 2012 22:14:53 +0000 (22:14 +0000)
committerJames E Keenan <jkeenan@cpan.org>
Mon, 26 Nov 2012 00:53:27 +0000 (19:53 -0500)
t/op/fh.t

index 16ba186..afca57b 100644 (file)
--- 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;');