Add test case.
This commit is contained in:
parent
dcc59c5a40
commit
58cdfa25fb
1 changed files with 1 additions and 0 deletions
|
@ -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), ""},
|
||||||
|
|
Loading…
Reference in a new issue