Add test case.

This commit is contained in:
Nuno Cruces 2023-04-12 13:36:20 +01:00
parent dcc59c5a40
commit 58cdfa25fb

View file

@ -21,6 +21,7 @@ func Test_splitDirAndName(t *testing.T) {
{"a/", "a/", ""}, {"a/", "a/", ""},
{"a", "", "a"}, {"a", "", "a"},
{"/", "/", ""}, {"/", "/", ""},
{"", "", ""},
// we split differently if we know it's a directory // we split differently if we know it's a directory
{tempDir, tempDir, ""}, {tempDir, tempDir, ""},
{filepath.Clean(tempDir), filepath.Clean(tempDir), ""}, {filepath.Clean(tempDir), filepath.Clean(tempDir), ""},