fix: fix IsExist function in fileutil/file.go

This commit is contained in:
dudaodong committed 2021-11-29 20:23:26 +08:00
1 parent 561b590e13
commit 4e5d3c2603
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ import (
)
func TestIsExist(t *testing.T) {
cases := []string{"./", "./a.txt"}
expected := []bool{true, false}
cases := []string{"./", "./file.go", "./a.txt"}
expected := []bool{true, true, false}
for i := 0; i < len(cases); i++ {
res := IsExist(cases[i])