Fix-n-skip the tests under 5005threads.
[p5sagit/p5-mst-13.2.git] / t / lib / texttabs.t
CommitLineData
1a3850a5 1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
93430cb4 5 unshift @INC, '../lib';
1a3850a5 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";