Add test condition to IsSeparator test

This commit is contained in:
Theresa Gresch 2019-07-17 15:34:34 +02:00
parent 5bc213f6f2
commit f527dbd272

View file

@ -10,7 +10,7 @@ func TestIsSeparator(t *testing.T) {
assert.Equal(t, false, isSeparator('A'))
})
t.Run("rune 99", func(t *testing.T) {
assert.Equal(t, false, isSeparator(99))
assert.Equal(t, false, isSeparator('9'))
})
t.Run("rune /", func(t *testing.T) {
assert.Equal(t, true, isSeparator('/'))
@ -27,6 +27,9 @@ func TestIsSeparator(t *testing.T) {
t.Run("rune '", func(t *testing.T) {
assert.Equal(t, false, isSeparator('\''))
})
t.Run("rune ý", func(t *testing.T) {
assert.Equal(t, false, isSeparator('ý'))
})
}
func TestUcFirst(t *testing.T) {