aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes/bytes_test.go
diff options
context:
space:
mode:
authorShawn Smith <shawn.p.smith@gmail.com>2013-12-20 23:19:32 -0800
committerRob Pike <r@golang.org>2013-12-20 23:19:32 -0800
commit7054890715cea2433a7c9935bbb7fc6ca61f3e32 (patch)
treed061d0fafd87ca19d4598709f6f32bfbfbd3d8e9 /src/pkg/bytes/bytes_test.go
parente8b7def7f41c0cee643e0222adc296be85022318 (diff)
downloadgo-7054890715cea2433a7c9935bbb7fc6ca61f3e32.tar.xz
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
Diffstat (limited to 'src/pkg/bytes/bytes_test.go')
-rw-r--r--src/pkg/bytes/bytes_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go
index ab5da4fbf0..4c4780f79a 100644
--- a/src/pkg/bytes/bytes_test.go
+++ b/src/pkg/bytes/bytes_test.go
@@ -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) {