1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 07:02:29 +08:00

fix: fix failed unit test

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

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() {