This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1056510
)
Test multiline links in diagnostics.t
author
Father Chrysostomos
<sprout@cpan.org>
Mon, 12 Aug 2013 07:30:51 +0000
(
00:30
-0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 12 Aug 2013 07:30:51 +0000
(
00:30
-0700)
lib/diagnostics.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/diagnostics.t
b/lib/diagnostics.t
index
497caaa
..
a7e31e1
100644
(file)
--- a/
lib/diagnostics.t
+++ b/
lib/diagnostics.t
@@
-4,7
+4,7
@@
BEGIN {
chdir '..' if -d '../pod' && -d '../t';
@INC = 'lib';
require './t/test.pl';
- plan(2
4
);
+ plan(2
5
);
}
BEGIN {
@@
-128,6
+128,14
@@
like $warning,
qr/The whole warning/s,
'spaces in warnings with periods at the end are matched lightly';
+# Wrapped links
+seek STDERR, 0,0;
+$warning = '';
+warn "Argument \"%s\" treated as 0 in increment (++)";
+like $warning,
+ qr/Auto-increment.*Auto-decrement/s,
+ 'multiline links are not truncated';
+
*STDERR = $old_stderr;