Add test condition to IsSeparator test
This commit is contained in:
parent
5bc213f6f2
commit
f527dbd272
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue