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
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Build Text::Tabs before running mktables, as it needs it
[perl5.git]
/
ext
/
Text-Tabs
/
t
/
Jacobson.t
1
#!/usr/bin/perl -I.
2
3
# From: Dan Jacobson <jidanni at jidanni dot org>
4
5
use Text::Wrap qw(wrap $columns $huge $break);
6
7
print "1..1\n";
8
9
$huge='overflow';
10
$Text::Wrap::columns=9;
11
$break="(?<=[,.])";
12
eval {
13
$a=$a=wrap('','',
14
"mmmm,n,ooo,ppp.qqqq.rrrrr,sssssssssssss,ttttttttt,uu,vvv wwwwwwwww####\n");
15
};
16
17
if ($@) {
18
my $e = $@;
19
$e =~ s/^/# /gm;
20
print $e;
21
}
22
print $@ ? "not ok 1\n" : "ok 1\n";
23
24