Skip to content

Commit d68d049

Browse files
update unit test
1 parent 4147c27 commit d68d049

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/archive/zip/writer_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,9 @@ func TestWriterAddFS(t *testing.T) {
642642
t.Fatal(err)
643643
}
644644
for i, wt := range tests {
645+
if wt.Mode.IsDir() {
646+
wt.Name += "/"
647+
}
645648
testReadFile(t, r.File[i], &wt)
646649
}
647650
}

0 commit comments

Comments
 (0)