Add test for IsTextFile()

This commit is contained in:
Matthias Loibl 2016-11-07 23:15:02 +01:00
parent 95d4cd9292
commit e74868a850
No known key found for this signature in database
GPG key ID: B1C7DF661ABB2C1A

View file

@ -176,6 +176,10 @@ func TestIsLetter(t *testing.T) {
assert.False(t, IsLetter('$')) assert.False(t, IsLetter('$'))
} }
// TODO: IsTextFile() func TestIsTextFile(t *testing.T) {
// TODO: IsImageFile() assert.True(t, IsTextFile([]byte{}))
// TODO: IsPDFFile() assert.True(t, IsTextFile([]byte("lorem ipsum")))
}
// TODO: IsImageFile(), currently no idea how to test
// TODO: IsPDFFile(), currently no idea how to test