(t *testing.T)
| 1392 | } |
| 1393 | |
| 1394 | func 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 | |
| 1416 | func TestText_ToUpperSpecial(t *testing.T) { |
| 1417 | type args struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…