home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl560.zip
/
t
/
lib
/
texttabs.t
< prev
next >
Wrap
Text File
|
1999-07-20
|
413b
|
29 lines
#!./perl
BEGIN {
chdir 't' if -d 't';
unshift @INC, '../lib';
}
print "1..3\n";
use Text::Tabs;
$tabstop = 4;
$s1 = "foo\tbar\tb\tb";
$s2 = expand $s1;
$s3 = unexpand $s2;
print "not " unless $s2 eq "foo bar b b";
print "ok 1\n";
print "not " unless $s3 eq "foo bar b\tb";
print "ok 2\n";
$tabstop = 8;
print "not " unless unexpand(" foo") eq "\t\t foo";
print "ok 3\n";