0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 07:43:18 -05:00

Add test for IsLetter()

This commit is contained in:
Matthias Loibl 2016-11-07 22:44:25 +01:00
parent 4235fff9ee
commit 2bb188ae79
No known key found for this signature in database
GPG key ID: B1C7DF661ABB2C1A

View file

@ -161,7 +161,21 @@ func TestInt64sToMap(t *testing.T) {
)
}
// TODO: IsLetter()
func TestIsLetter(t *testing.T) {
assert.True(t, IsLetter('a'))
assert.True(t, IsLetter('e'))
assert.True(t, IsLetter('q'))
assert.True(t, IsLetter('z'))
assert.True(t, IsLetter('A'))
assert.True(t, IsLetter('E'))
assert.True(t, IsLetter('Q'))
assert.True(t, IsLetter('Z'))
assert.True(t, IsLetter('_'))
assert.False(t, IsLetter('-'))
assert.False(t, IsLetter('1'))
assert.False(t, IsLetter('$'))
}
// TODO: IsTextFile()
// TODO: IsImageFile()
// TODO: IsPDFFile()