MCPcopy Create free account
hub / github.com/chanced/caps / TestText_ToLowerSpecial

Function TestText_ToLowerSpecial

text/text_test.go:1394–1414  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1392}
1393
1394func TestText_ToLowerSpecial(t *testing.T) {
1395 type args struct {
1396 c unicode.SpecialCase
1397 }
1398 tests := []struct {
1399 name string
1400 tr Text
1401 args args
1402 want Text
1403 }{
1404 {"empty", "", args{unicode.TurkishCase}, ""},
1405 {"turkish", "İÇĞIÖŞÜ", args{unicode.TurkishCase}, "içğıöşü"},
1406 }
1407 for _, tt := range tests {
1408 t.Run(tt.name, func(t *testing.T) {
1409 if got := tt.tr.ToLowerSpecial(tt.args.c); got != tt.want {
1410 t.Errorf("Text.ToLowerSpecial() = %v, want %v", got, tt.want)
1411 }
1412 })
1413 }
1414}
1415
1416func TestText_ToUpperSpecial(t *testing.T) {
1417 type args struct {

Callers

nothing calls this directly

Calls 1

ToLowerSpecialMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…