mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
fix: fix bug of CreateDir
This commit is contained in:
1 parent
154ec56780
commit
7b744c299e
5 files changed
+20
-11
No files matched your search
@@ -50,7 +50,7 @@ func TestCreateDir(t *testing.T) {
|
||||
t.FailNow()
|
||||
}
|
||||
|
||||
dirPath := pwd + "/a/"
|
||||
dirPath := pwd + "/a/b"
|
||||
err = CreateDir(dirPath)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
@@ -58,7 +58,9 @@ func TestCreateDir(t *testing.T) {
|
||||
}
|
||||
|
||||
assert.Equal(true, IsExist(dirPath))
|
||||
os.Remove(dirPath)
|
||||
|
||||
os.RemoveAll(pwd + "/a")
|
||||
|
||||
assert.Equal(false, IsExist(dirPath))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user