diff --git a/modules/base/tool_test.go b/modules/base/tool_test.go index 4f64d3728d..093e479a38 100644 --- a/modules/base/tool_test.go +++ b/modules/base/tool_test.go @@ -176,6 +176,10 @@ func TestIsLetter(t *testing.T) { assert.False(t, IsLetter('$')) } -// TODO: IsTextFile() -// TODO: IsImageFile() -// TODO: IsPDFFile() +func TestIsTextFile(t *testing.T) { + assert.True(t, IsTextFile([]byte{})) + assert.True(t, IsTextFile([]byte("lorem ipsum"))) +} + +// TODO: IsImageFile(), currently no idea how to test +// TODO: IsPDFFile(), currently no idea how to test