Commit 99aab8ba authored by Scott Lawrence's avatar Scott Lawrence Committed by Rob Pike

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
parent 2db4c3d7
......@@ -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"}},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment