aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/bytes/bytes_test.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-27 22:47:54 -0700
committerRuss Cox <rsc@golang.org>2009-10-27 22:47:54 -0700
commitd2829faa7c46cd2105eb897e77c92a86baefcd79 (patch)
tree59cdfb7c6316bd02d9cfe4e298cf6fc40ffc0c4a /src/pkg/bytes/bytes_test.go
parent58ee1f5d546e80b508c1bfd536735d204c873408 (diff)
downloadgo-d2829faa7c46cd2105eb897e77c92a86baefcd79.tar.xz
files that are okay from the last gofmt round
R=gri http://go/go-review/1015011
Diffstat (limited to 'src/pkg/bytes/bytes_test.go')
-rw-r--r--src/pkg/bytes/bytes_test.go16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go
index 094d71186f..24ee4bf4d2 100644
--- a/src/pkg/bytes/bytes_test.go
+++ b/src/pkg/bytes/bytes_test.go
@@ -5,10 +5,10 @@
package bytes_test
import (
- . "bytes";
- "strings";
- "testing";
- "unicode";
+ . "bytes";
+ "strings";
+ "testing";
+ "unicode";
)
func eq(a, b []string) bool {
@@ -241,18 +241,14 @@ func TestMap(t *testing.T) {
// Run a couple of awful growth/shrinkage tests
a := tenRunes('a');
// 1. Grow. This triggers two reallocations in Map.
- maxRune := func(rune int) int {
- return unicode.MaxRune;
- };
+ maxRune := func(rune int) int { return unicode.MaxRune };
m := Map(maxRune, Bytes(a));
expect := tenRunes(unicode.MaxRune);
if string(m) != expect {
t.Errorf("growing: expected %q got %q", expect, m);
}
// 2. Shrink
- minRune := func(rune int) int {
- return 'a';
- };
+ minRune := func(rune int) int { return 'a' };
m = Map(minRune, Bytes(tenRunes(unicode.MaxRune)));
expect = a;
if string(m) != expect {