Add more test conditions to strings test
This commit is contained in:
parent
f7063e7643
commit
411d998ac6
1 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue