fix: fix failed unit test

This commit is contained in:
dudaodong committed 2023-06-20 11:10:33 +08:00
1 parent 844b7a2c3b
commit efcfbfb6a1
2 files changed
+4 -7

No files matched your search

+2 -4
View File
@@ -175,11 +175,11 @@ func ExampleReadFileByLine() {
}
func ExampleListFileNames() {
fileList, _ := ListFileNames("./")
fileList, _ := ListFileNames("../internal")
fmt.Println(fileList)
// Output:
// [file.go file_example_test.go file_test.go]
// [assert.go assert_test.go error_join.go]
}
func ExampleZip() {
@@ -235,7 +235,6 @@ func ExampleZipAppendEntry() {
fmt.Println(IsExist("./unzip/file.go"))
fmt.Println(IsExist("./unzip/testdata/file.go.zip"))
fmt.Println(IsExist("./unzip/testdata/test.csv"))
fmt.Println(IsExist("./unzip/testdata/test.txt"))
os.Remove(zipFile)
@@ -245,7 +244,6 @@ func ExampleZipAppendEntry() {
// true
// true
// true
// true
}
func ExampleIsZipFile() {