mirror of
https://github.com/golang/go
synced 2024-11-12 07:00:21 -07:00
bytes, strings: improve Title test coverage by adding cases with underscore and unicode line separator
R=golang-codereviews, gobot, r CC=golang-codereviews https://golang.org/cl/42310045
This commit is contained in:
parent
e8b7def7f4
commit
7054890715
@ -1073,6 +1073,8 @@ var TitleTests = []TitleTest{
|
||||
{"123a456", "123a456"},
|
||||
{"double-blind", "Double-Blind"},
|
||||
{"ÿøû", "Ÿøû"},
|
||||
{"with_underscore", "With_underscore"},
|
||||
{"unicode \xe2\x80\xa8 line separator", "Unicode \xe2\x80\xa8 Line Separator"},
|
||||
}
|
||||
|
||||
func TestTitle(t *testing.T) {
|
||||
|
@ -903,6 +903,8 @@ var TitleTests = []struct {
|
||||
{"123a456", "123a456"},
|
||||
{"double-blind", "Double-Blind"},
|
||||
{"ÿøû", "Ÿøû"},
|
||||
{"with_underscore", "With_underscore"},
|
||||
{"unicode \xe2\x80\xa8 line separator", "Unicode \xe2\x80\xa8 Line Separator"},
|
||||
}
|
||||
|
||||
func TestTitle(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user