Documentation/describe: improve one-line summary
[git.git] / t / Git-SVN / Utils / collapse_dotdot.t
blob1da1cce156c496d00b4e15690c6fa4613a5ca10e
1 #!/usr/bin/env perl
3 use strict;
4 use warnings;
6 use Test::More 'no_plan';
8 use Git::SVN::Utils;
9 my $collapse_dotdot = \&Git::SVN::Utils::_collapse_dotdot;
11 my %tests = (
12 "foo/bar/baz" => "foo/bar/baz",
13 ".." => "..",
14 "foo/.." => "",
15 "/foo/bar/../../baz" => "/baz",
16 "deeply/.././deeply/nested" => "./deeply/nested",
19 for my $arg (keys %tests) {
20 my $want = $tests{$arg};
22 is $collapse_dotdot->($arg), $want, "_collapse_dotdot('$arg') => $want";