feat: add IsZipFile

This commit is contained in:
dudaodong
2023-04-24 11:00:58 +08:00
parent aaf45012e4
commit 5e79eaa9dd
6 changed files with 95 additions and 3 deletions

View File

@@ -246,3 +246,10 @@ func TestCurrentPath(t *testing.T) {
absPath := CurrentPath()
t.Log(absPath)
}
func TestIsZipFile(t *testing.T) {
assert := internal.NewAssert(t, "TestIsZipFile")
assert.Equal(false, IsZipFile("./file.go"))
assert.Equal(true, IsZipFile("./test/file.go.zip"))
}