mirror of
https://github.com/duke-git/lancet.git
synced 2026-11-16 05:12:11 +08:00
feat: add IsZipFile
This commit is contained in:
1 parent
aaf45012e4
commit
5e79eaa9dd
6 files changed
+95
-3
No files matched your search
@@ -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"))
|
||||
}
|
||||
Reference in new issue
Block a user