summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJames E Keenan <jkeenan@cpan.org>2012-12-08 15:50:18 -0500
committerJames E Keenan <jkeenan@cpan.org>2012-12-14 20:50:07 -0500
commit7245301c868bf8acef30ad917cc723f7aa84cbc1 (patch)
treef7e3076dd883241e2b7e0838ee62be0e9685a212 /t
parentd479ea798026224fbf2ef8466ac91d5e9f282ae3 (diff)
downloadperl-7245301c868bf8acef30ad917cc723f7aa84cbc1.tar.gz
t/op/dor.t: Provide descriptions for tests still lacking them.
Diffstat (limited to 't')
-rw-r--r--t/op/dor.t13
1 files changed, 8 insertions, 5 deletions
diff --git a/t/op/dor.t b/t/op/dor.t
index 9f280503ea..e2385f1a7b 100644
--- a/t/op/dor.t
+++ b/t/op/dor.t
@@ -56,15 +56,18 @@ for (qw(getc pos readline readlink undef umask <> <FOO> <$foo> -f)) {
# Test for some ambiguous syntaxes
eval q# sub f ($) { } f $x / 2; #;
-is( $@, '' );
+is( $@, '', "'/' correctly parsed as arithmetic operator" );
eval q# sub f ($):lvalue { $y } f $x /= 2; #;
-is( $@, '' );
+is( $@, '', "'/=' correctly parsed as assigment operator" );
eval q# sub f ($) { } f $x /2; #;
-like( $@, qr/^Search pattern not terminated/ );
+like( $@, qr/^Search pattern not terminated/,
+ "Caught unterminated search pattern error message: empty subroutine" );
eval q# sub { print $fh / 2 } #;
-is( $@, '' );
+is( $@, '',
+ "'/' correctly parsed as arithmetic operator in sub with built-in function" );
eval q# sub { print $fh /2 } #;
-like( $@, qr/^Search pattern not terminated/ );
+like( $@, qr/^Search pattern not terminated/,
+ "Caught unterminated search pattern error message: sub with built-in function" );
# [perl #28123] Perl optimizes // away incorrectly