4 # Testing relative_path();
8 BEGIN { use lib
qw(. ..); require "stow"; }
10 use Test
::More tests
=> 5;
13 relative_path
('a/b/c', 'a/b/d'),
15 => 'diferent branches'
19 relative_path
('/a/b/c', '/a/b/c/d'),
21 => 'lower same branch'
25 relative_path
('a/b/c', 'a/b'),
27 => 'higher, same branch'
31 relative_path
('/a/b/c', '/d/e/f'),
33 => 'common parent is /'
37 relative_path
('///a//b//c////', '/a////b/c/d////'),