unixish_guts_test.pl untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/local/bin/perl
2 BEGIN {
3 $Mac::FileSpec::Unixish::Pretend_Mac = 1;
4 # $Mac::FileSpec::Unixish::Debug = 1;
5 }
6  
7 use Mac::FileSpec::Unixish;
8  
9 foreach $item (
10 "bar/../foo/",
11 "/bar/../foo",
12 "bar/.////./../foo/",
13 "../foo",
14 '/'
15 # "/../foo", # meaningless
16 ) {
17 printf "u<%s> => m<%s> => u<%s> => m<%s>\n\n",
18 $item,
19 $m = nativize($item),
20 $u = unixify($m),
21 nativize($u)
22 ;
23 }
24  
25 print"\n\n";
26  
27 foreach $item (
28 ':bar::foo/bar',
29 'bar:foo:',
30 'bar:::foo',
31 '::foo',
32 ) {
33 printf "m<%s> => u<%s> => m<%s>\n\n",
34 $item,
35 $u = unixify($item),
36 nativize($u)
37 ;
38 }
39 print"\n\n";
40 exit;
41  
42 __END__