This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: Proposed addition to File::Copy: move
[perl5.git] / t / lib / texttabs.t
CommitLineData
1a3850a5
GA
1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 @INC = '../lib';
6}
7
8print "1..3\n";
9
10use Text::Tabs;
11
12$tabstop = 4;
13
14$s1 = "foo\tbar\tb\tb";
15$s2 = expand $s1;
16$s3 = unexpand $s2;
17
18print "not " unless $s2 eq "foo bar b b";
19print "ok 1\n";
20
21print "not " unless $s3 eq "foo bar b\tb";
22print "ok 2\n";
23
24
25$tabstop = 8;
26
27print "not " unless unexpand(" foo") eq "\t\t foo";
28print "ok 3\n";