4 # Testing join_paths();
8 BEGIN { use lib
qw(. ..); require "stow"; }
10 use Test
::More tests
=> 13;
13 join_paths
('a/b/c', 'd/e/f'),
19 join_paths
('/a/b/c', '/d/e/f'),
25 join_paths
('/a/b/c/', '/d/e/f/'),
31 join_paths
('///a/b///c//', '/d///////e/f'),
37 join_paths
('', 'a/b/c'),
43 join_paths
('a/b/c', ''),
49 join_paths
('/', 'a/b/c'),
55 join_paths
('a/b/c', '/'),
61 join_paths
('///a/b///c//', '/d///////e/f'),
68 join_paths
('../a1/b1/../c1/', '/a2/../b2/e2'),
70 => 'simple deref ".."'
74 join_paths
('../a1/b1/../c1/d1/e1', '../a2/../b2/c2/d2/../e2'),
75 '../a1/c1/d1/b2/c2/e2',
76 => 'complex deref ".."'
80 join_paths
('../a1/../../c1', 'a2/../../'),
86 join_paths
('./a1', '../../a2'),