diff options
author | Russ Cox <rsc@golang.org> | 2009-08-12 13:18:37 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-08-12 13:18:37 -0700 |
commit | fc30062047876ed5e09983e0314265811973d2d3 (patch) | |
tree | fb8ce575f8d1f4edc0212dfd8848524f459c64d5 /src/pkg/bytes/bytes_test.go | |
parent | b1b3e70a5e9acb46914588167a43eea1bba7a529 (diff) | |
download | golang-fc30062047876ed5e09983e0314265811973d2d3.tar.gz |
convert low-level (used by testing) packages to
whole-package compilation. new Makefiles,
tests now in separate package
bytes
flag
fmt
io
math
once
os
reflect
strconv
sync
time
utf8
delete import "xxx" in package xxx.
inside package xxx, xxx is not declared
anymore so s/xxx.//g
delete file and package level forward declarations.
note the new internal_test.go and sync
and strconv to provide public access to
internals during testing. the installed version
of the package omits that file and thus does
not open the internals to all clients.
R=r
OCL=33065
CL=33097
Diffstat (limited to 'src/pkg/bytes/bytes_test.go')
-rw-r--r-- | src/pkg/bytes/bytes_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go index a3e44262c..e37767d9a 100644 --- a/src/pkg/bytes/bytes_test.go +++ b/src/pkg/bytes/bytes_test.go @@ -2,10 +2,10 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package bytes +package bytes_test import ( - "bytes"; + . "bytes"; "strings"; "testing"; ) @@ -85,7 +85,7 @@ var explodetests = []ExplodeTest { } func TestExplode(t *testing.T) { for _, tt := range(explodetests) { - a := explode(strings.Bytes(tt.s), tt.n); + a := Split(strings.Bytes(tt.s), nil, tt.n); result := arrayOfString(a); if !eq(result, tt.a) { t.Errorf(`Explode("%s", %d) = %v; want %v`, tt.s, tt.n, result, tt.a); |