helpers: Fix and add Godoc in path*

This commit is contained in:
Bjørn Erik Pedersen
2016-03-23 10:03:29 +01:00
parent 6ff2e1dbe7
commit 8a60571fd2
2 changed files with 36 additions and 16 deletions

View File

@@ -152,12 +152,12 @@ func TestMakePathRelative(t *testing.T) {
}
for i, d := range data {
output, _ := MakePathRelative(d.inPath, d.path1, d.path2)
output, _ := makePathRelative(d.inPath, d.path1, d.path2)
if d.output != output {
t.Errorf("Test #%d failed. Expected %q got %q", i, d.output, output)
}
}
_, error := MakePathRelative("a/b/c.ss", "/a/c", "/d/c", "/e/f")
_, error := makePathRelative("a/b/c.ss", "/a/c", "/d/c", "/e/f")
if error == nil {
t.Errorf("Test failed, expected error")