mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
This commit is contained in:
parent
2db4c3d779
commit
99aab8bacb
1 changed files with 1 additions and 0 deletions
|
|
@ -212,6 +212,7 @@ type ExplodeTest struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var explodetests = []ExplodeTest{
|
var explodetests = []ExplodeTest{
|
||||||
|
ExplodeTest{"", -1, []string{}},
|
||||||
ExplodeTest{abcd, -1, []string{"a", "b", "c", "d"}},
|
ExplodeTest{abcd, -1, []string{"a", "b", "c", "d"}},
|
||||||
ExplodeTest{faces, -1, []string{"☺", "☻", "☹"}},
|
ExplodeTest{faces, -1, []string{"☺", "☻", "☹"}},
|
||||||
ExplodeTest{abcd, 2, []string{"a", "bcd"}},
|
ExplodeTest{abcd, 2, []string{"a", "bcd"}},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue