4 # Testing join_paths();
10 use Stow
::Util
qw(join_paths);
12 use Test
::More tests
=> 14;
15 join_paths
('a/b/c', 'd/e/f'),
21 join_paths
('/a/b/c', '/d/e/f'),
27 join_paths
('/a/b/c/', '/d/e/f/'),
33 join_paths
('///a/b///c//', '/d///////e/f'),
39 join_paths
('', 'a/b/c'),
45 join_paths
('a/b/c', ''),
51 join_paths
('/', 'a/b/c'),
57 join_paths
('a/b/c', '/'),
63 join_paths
('///a/b///c//', '/d///////e/f'),
70 join_paths
('../a1/b1/../c1/', '/a2/../b2/e2'),
72 => 'simple deref ".."'
76 join_paths
('../a1/b1/../c1/d1/e1', '../a2/../b2/c2/d2/../e2'),
77 '../a1/c1/d1/b2/c2/e2'
78 => 'complex deref ".."'
82 join_paths
('../a1/../../c1', 'a2/../../'),
88 join_paths
('./a1', '../../a2'),
94 join_paths
('a/b/c', '.'),