添加测试

This commit is contained in:
jroam
2019-04-10 13:45:42 +08:00
parent 4accd1264d
commit c1ad999c25

View File

@ -380,4 +380,16 @@ func TestRemove(t *testing.T) {
})
}
func TestIsReadable(t *testing.T){
gtest.Case(t, func(){
var(
paths1 string ="./testfile/havefile1/GetContents.txt"
paths2 string ="./testfile/havefile1/GetContents_no.txt"
)
gtest.Assert(IsReadable(paths1),true)
gtest.Assert(IsReadable(paths2),false)
})
}