aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes
diff options
context:
space:
mode:
authorScott Lawrence <bytbox@gmail.com>2010-08-04 13:33:24 +1000
committerRob Pike <r@golang.org>2010-08-04 13:33:24 +1000
commit99aab8bacb71f6c232bb6b5a2cea4efb0c3e8018 (patch)
tree50442eb4b717dfcfd20262709df5c6a71619f258 /src/pkg/bytes
parent2db4c3d779b09dd29d93640a101a6babc1e0e780 (diff)
downloadgo-99aab8bacb71f6c232bb6b5a2cea4efb0c3e8018.tar.xz
bytes: added test case for explode with blank string.
Tests for the equivalent of the strings.explode("") panic bug (issue 980). R=golang-dev, r CC=golang-dev https://golang.org/cl/1850052
Diffstat (limited to 'src/pkg/bytes')
-rw-r--r--src/pkg/bytes/bytes_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go
index 5d3e9f66a1..b91ae5734d 100644
--- a/src/pkg/bytes/bytes_test.go
+++ b/src/pkg/bytes/bytes_test.go
@@ -212,6 +212,7 @@ type ExplodeTest struct {
}
var explodetests = []ExplodeTest{
+ ExplodeTest{"", -1, []string{}},
ExplodeTest{abcd, -1, []string{"a", "b", "c", "d"}},
ExplodeTest{faces, -1, []string{"☺", "☻", "☹"}},
ExplodeTest{abcd, 2, []string{"a", "bcd"}},