8 @tests = (split(/\nEND\n/s, <<DONE));
21 This is a test of a very long line. It should be broken up and put onto multiple lines.
22 This is a test of a very long line. It should be broken up and put onto multiple lines.
24 This is a test of a very long line. It should be broken up and put onto multiple lines.
26 This is a test of a very long line. It should be broken up and put onto
28 This is a test of a very long line. It should be broken up and put onto
31 This is a test of a very long line. It should be broken up and put onto
35 This is a test of a very long line. It should be broken up and put onto multiple lines.
37 This is a test of a very long line. It should be broken up and put onto
41 This is a test of a very long line. It should be broken up and put onto multiple lines.
44 This is a test of a very long line. It should be broken up and put onto
49 This is a test of a very long line. It should be broken up and put onto multiple This is a test of a very long line. It should be broken up and put
51 This is a test of a very long line. It should be broken up and put onto
52 multiple This is a test of a very long line. It should be broken up and
56 11111111 22222222 33333333 44444444 55555555 66666666 77777777 888888888 999999999 aaaaaaaaa bbbbbbbbb ccccccccc ddddddddd eeeeeeeee ffffffff gggggggg hhhhhhhh iiiiiiii jjjjjjjj kkkkkkkk llllllll mmmmmmmmm nnnnnnnnn ooooooooo ppppppppp qqqqqqqqq rrrrrrrrr sssssssss
58 11111111 22222222 33333333 44444444 55555555 66666666 77777777 888888888
59 999999999 aaaaaaaaa bbbbbbbbb ccccccccc ddddddddd eeeeeeeee ffffffff
60 gggggggg hhhhhhhh iiiiiiii jjjjjjjj kkkkkkkk llllllll mmmmmmmmm nnnnnnnnn
61 ooooooooo ppppppppp qqqqqqqqq rrrrrrrrr sssssssss
64 c3t1d0s6 c4t1d0s6 c5t1d0s6 c6t1d0s6 c7t1d0s6 c8t1d0s6 c9t1d0s6 c10t1d0s6 c11t1d0s6 c12t1d0s6 c13t1d0s6 c14t1d0s6 c15t1d0s6 c16t1d0s6 c3t1d0s0 c4t1d0s0 c5t1d0s0 c6t1d0s0 c7t1d0s0 c8t1d0s0 c9t1d0s0 c10t1d0s0 c11t1d0s0 c12t1d0s0 c13t1d0s0 c14t1d0s0 c15t1d0s0 c16t1d0s0
66 c3t1d0s6 c4t1d0s6 c5t1d0s6 c6t1d0s6 c7t1d0s6 c8t1d0s6 c9t1d0s6 c10t1d0s6
67 c11t1d0s6 c12t1d0s6 c13t1d0s6 c14t1d0s6 c15t1d0s6 c16t1d0s6 c3t1d0s0
68 c4t1d0s0 c5t1d0s0 c6t1d0s0 c7t1d0s0 c8t1d0s0 c9t1d0s0 c10t1d0s0 c11t1d0s0
69 c12t1d0s0 c13t1d0s0 c14t1d0s0 c15t1d0s0 c16t1d0s0
72 A test of a very very long word.
73 a123456789b123456789c123456789d123456789e123456789f123456789g123456789g1234567
75 A test of a very very long word.
76 a123456789b123456789c123456789d123456789e123456789f123456789g123456789g123
80 A test of a very very long word. a123456789b123456789c123456789d123456789e123456789f123456789g123456789g1234567
82 A test of a very very long word.
83 a123456789b123456789c123456789d123456789e123456789f123456789g123456789g123
97 $rerun = $ENV{'PERL_DL_NONLAZY'} ? 0 : 1;
101 my $in = shift(@tests);
102 my $out = shift(@tests);
104 $in =~ s/^TEST(\d+)?\n//;
106 my $back = wrap(' ', ' ', $in);
112 foreach ($in, $back, $out) {
116 print "------------ input ------------\n";
118 print "\n------------ output -----------\n";
120 print "\n------------ expected ---------\n";
122 print "\n-------------------------------\n";
123 $Text::Wrap::debug = 1;
127 print "not ok $tn\n";