(t *testing.T)
| 237 | } |
| 238 | |
| 239 | func TestToLower(t *testing.T) { |
| 240 | strs := []string{"ABC", "abc", "", "a", "!!", "Abc"} |
| 241 | |
| 242 | for _, str := range strs { |
| 243 | t.Run(str, func(t *testing.T) { |
| 244 | if token.ToLower(token.DefaultCaser, str) != strings.ToLower(str) { |
| 245 | t.Errorf("expected \"%s\" to be %s", str, strings.ToLower(str)) |
| 246 | } |
| 247 | if token.ToLower(token.TurkishCaser, str) != strings.ToLowerSpecial(unicode.TurkishCase, str) { |
| 248 | t.Errorf("expected \"%s\" to be %s", str, strings.ToLowerSpecial(unicode.TurkishCase, str)) |
| 249 | } |
| 250 | }) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | func TestToUpper(t *testing.T) { |
| 255 | strs := []string{"ABC", "abc", "", "a", "!!", "Abc"} |
nothing calls this directly
no test coverage detected
searching dependent graphs…