xref: /openbsd-src/gnu/usr.bin/perl/cpan/Text-Tabs/t/wrap_separator2.t (revision 91f110e064cd7c194e59e019b83bb7496c1c84d4)
1#!/usr/local/bin/perl -w
2#Author: Dan Dascalescu
3use strict;
4use Test::More tests => 1;
5
6use Text::Wrap;
7
8local $Text::Wrap::columns = 15;
9local $Text::Wrap::separator2 = '[N]';
10
11is(wrap('','','some long text here that should be wrapped on at least three lines'),
12"some long text[N]here that[N]should be[N]wrapped on at[N]least three[N]lines",
13'If you just to preserve existing newlines but add new breaks with something else, set $Text::Wrap::separator2 instead.');
14