Add more test conditions to strings test

This commit is contained in:
Theresa Gresch 2019-07-17 13:46:21 +02:00
parent f7063e7643
commit 411d998ac6

View file

@ -9,8 +9,8 @@ func TestIsSeparator(t *testing.T) {
t.Run("rune A", func(t *testing.T) {
assert.Equal(t, false, isSeparator('A'))
})
t.Run("rune 9", func(t *testing.T) {
assert.Equal(t, false, isSeparator('9'))
t.Run("rune 99", func(t *testing.T) {
assert.Equal(t, false, isSeparator(99))
})
t.Run("rune /", func(t *testing.T) {
assert.Equal(t, true, isSeparator('/'))
@ -36,6 +36,9 @@ func TestUcFirst(t *testing.T) {
t.Run("cat", func(t *testing.T) {
assert.Equal(t, "Cat", UcFirst("Cat"))
})
t.Run("empty string", func(t *testing.T) {
assert.Equal(t, "", UcFirst(""))
})
}
func TestTitle(t *testing.T) {