diff options
| author | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-07-14 14:39:40 -0700 |
| commit | 90564a92565877d19e456694ac4e2ef205720432 (patch) | |
| tree | 8cb7e9ba936b3721ed7e3120e95fa419859ea20f /src/pkg/container/vector/stringvector_test.go | |
| parent | 58e19aa4cb8656cdb757172647dfcb028029185e (diff) | |
| download | go-90564a92565877d19e456694ac4e2ef205720432.tar.xz | |
go/printer: changed max. number of newlines from 3 to 2
manual changes in src/pkg/go/printer, src/cmd/gofix/signal_test.go
(cd src/cmd/gofix/testdata; gofmt -w *.in *.out)
(cd src/pkg/go/printer; gotest -update)
gofmt -w misc src
runs all tests
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4715041
Diffstat (limited to 'src/pkg/container/vector/stringvector_test.go')
| -rw-r--r-- | src/pkg/container/vector/stringvector_test.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/pkg/container/vector/stringvector_test.go b/src/pkg/container/vector/stringvector_test.go index 776ae26dea..c75676f786 100644 --- a/src/pkg/container/vector/stringvector_test.go +++ b/src/pkg/container/vector/stringvector_test.go @@ -9,7 +9,6 @@ package vector import "testing" - func TestStrZeroLen(t *testing.T) { a := new(StringVector) if a.Len() != 0 { @@ -27,7 +26,6 @@ func TestStrZeroLen(t *testing.T) { } } - func TestStrResize(t *testing.T) { var a StringVector checkSize(t, &a, 0, 0) @@ -40,7 +38,6 @@ func TestStrResize(t *testing.T) { checkSize(t, a.Resize(11, 100), 11, 100) } - func TestStrResize2(t *testing.T) { var a StringVector checkSize(t, &a, 0, 0) @@ -62,7 +59,6 @@ func TestStrResize2(t *testing.T) { } } - func checkStrZero(t *testing.T, a *StringVector, i int) { for j := 0; j < i; j++ { if a.At(j) == strzero { @@ -82,7 +78,6 @@ func checkStrZero(t *testing.T, a *StringVector, i int) { } } - func TestStrTrailingElements(t *testing.T) { var a StringVector for i := 0; i < 10; i++ { @@ -95,7 +90,6 @@ func TestStrTrailingElements(t *testing.T) { checkStrZero(t, &a, 5) } - func TestStrAccess(t *testing.T) { const n = 100 var a StringVector @@ -120,7 +114,6 @@ func TestStrAccess(t *testing.T) { } } - func TestStrInsertDeleteClear(t *testing.T) { const n = 100 var a StringVector @@ -207,7 +200,6 @@ func TestStrInsertDeleteClear(t *testing.T) { } } - func verify_sliceStr(t *testing.T, x *StringVector, elt, i, j int) { for k := i; k < j; k++ { if elem2StrValue(x.At(k)) != int2StrValue(elt) { @@ -223,7 +215,6 @@ func verify_sliceStr(t *testing.T, x *StringVector, elt, i, j int) { } } - func verify_patternStr(t *testing.T, x *StringVector, a, b, c int) { n := a + b + c if x.Len() != n { @@ -237,7 +228,6 @@ func verify_patternStr(t *testing.T, x *StringVector, a, b, c int) { verify_sliceStr(t, x, 0, a+b, n) } - func make_vectorStr(elt, len int) *StringVector { x := new(StringVector).Resize(len, 0) for i := 0; i < len; i++ { @@ -246,7 +236,6 @@ func make_vectorStr(elt, len int) *StringVector { return x } - func TestStrInsertVector(t *testing.T) { // 1 a := make_vectorStr(0, 0) @@ -270,7 +259,6 @@ func TestStrInsertVector(t *testing.T) { verify_patternStr(t, a, 8, 1000, 2) } - func TestStrDo(t *testing.T) { const n = 25 const salt = 17 @@ -325,7 +313,6 @@ func TestStrDo(t *testing.T) { } - func TestStrVectorCopy(t *testing.T) { // verify Copy() returns a copy, not simply a slice of the original vector const Len = 10 |
