From d2829faa7c46cd2105eb897e77c92a86baefcd79 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 27 Oct 2009 22:47:54 -0700 Subject: files that are okay from the last gofmt round R=gri http://go/go-review/1015011 --- src/pkg/bytes/bytes_test.go | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/pkg/bytes/bytes_test.go') 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 { -- cgit v1.3