1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-12 00:32:27 +08:00

refactor: rewrite all unit test functions with assert

This commit is contained in:
dudaodong
2022-01-09 16:04:33 +08:00
parent 52c5a91606
commit 1f45937190
2 changed files with 3 additions and 3 deletions

View File

@@ -47,9 +47,9 @@ func TestIsDir(t *testing.T) {
func TestRemoveFile(t *testing.T) {
assert := internal.NewAssert(t, "TestRemoveFile")
f := "./text.txt"
if CreateFile(f) {
if !IsExist(f) {
CreateFile(f)
err := RemoveFile(f)
assert.IsNil(err)
}