aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exec/exec_test.go
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2011-06-28 09:43:14 +1000
committerRob Pike <r@golang.org>2011-06-28 09:43:14 +1000
commitebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9 (patch)
tree62c412f896baa504ae4a26d452f8cac6ce1aeed8 /src/pkg/exec/exec_test.go
parent82a8afdf1411bbe5b08b09d1e94a8d1c4fb5635c (diff)
downloadgo-ebb1566a46f2f5b2c06ef0f7ad5f7084dce0aed9.tar.xz
strings.Split: make the default to split all.
Change the signature of Split to have no count, assuming a full split, and rename the existing Split with a count to SplitN. Do the same to package bytes. Add a gofix module. R=adg, dsymonds, alex.brainman, rsc CC=golang-dev https://golang.org/cl/4661051
Diffstat (limited to 'src/pkg/exec/exec_test.go')
-rw-r--r--src/pkg/exec/exec_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/exec/exec_test.go b/src/pkg/exec/exec_test.go
index c45a7d70a6..f6cebb9055 100644
--- a/src/pkg/exec/exec_test.go
+++ b/src/pkg/exec/exec_test.go
@@ -55,7 +55,7 @@ func TestCatGoodAndBadFile(t *testing.T) {
t.Errorf("expected Waitmsg from cat combined; got %T: %v", err, err)
}
s := string(bs)
- sp := strings.Split(s, "\n", 2)
+ sp := strings.SplitN(s, "\n", 2)
if len(sp) != 2 {
t.Fatalf("expected two lines from cat; got %q", s)
}