1use strict; use warnings;
2
3#Author: Dan Dascalescu
4
5BEGIN { require './t/lib/ok.pl' }
6use Text::Wrap;
7
8print "1..1\n";
9
10local $Text::Wrap::columns = 15;
11local $Text::Wrap::separator2 = '[N]';
12
13ok(wrap('','','some long text here that should be wrapped on at least three lines') eq
14"some long text[N]here that[N]should be[N]wrapped on at[N]least three[N]lines",
15'If you just to preserve existing newlines but add new breaks with something else, set $Text::Wrap::separator2 instead.');
16