diff options
author | Robert Griesemer <gri@golang.org> | 2009-12-15 15:35:38 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-12-15 15:35:38 -0800 |
commit | e4bd81f903362d998f7bfc02095935408aff0bc5 (patch) | |
tree | 05f75a90e239d33be427da4f9c5596d2fcb3dc96 /src/pkg/net/ip_test.go | |
parent | d9527dd16f72598b54a64550607bf892efa12384 (diff) | |
download | golang-e4bd81f903362d998f7bfc02095935408aff0bc5.tar.gz |
1) Change default gofmt default settings for
parsing and printing to new syntax.
Use -oldparser to parse the old syntax,
use -oldprinter to print the old syntax.
2) Change default gofmt formatting settings
to use tabs for indentation only and to use
spaces for alignment. This will make the code
alignment insensitive to an editor's tabwidth.
Use -spaces=false to use tabs for alignment.
3) Manually changed src/exp/parser/parser_test.go
so that it doesn't try to parse the parser's
source files using the old syntax (they have
new syntax now).
4) gofmt -w src misc test/bench
3rd set of files.
R=rsc
CC=golang-dev
http://codereview.appspot.com/180048
Diffstat (limited to 'src/pkg/net/ip_test.go')
-rw-r--r-- | src/pkg/net/ip_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/net/ip_test.go b/src/pkg/net/ip_test.go index 7cca831b5..0ea1d9260 100644 --- a/src/pkg/net/ip_test.go +++ b/src/pkg/net/ip_test.go @@ -5,7 +5,7 @@ package net import ( - "testing"; + "testing" ) func isEqual(a, b IP) bool { @@ -20,12 +20,12 @@ func isEqual(a, b IP) bool { return false } } - return true; + return true } type parseIPTest struct { - in string; - out IP; + in string + out IP } var parseiptests = []parseIPTest{ @@ -44,7 +44,7 @@ var parseiptests = []parseIPTest{ func TestParseIP(t *testing.T) { for i := 0; i < len(parseiptests); i++ { - tt := parseiptests[i]; + tt := parseiptests[i] if out := ParseIP(tt.in); !isEqual(out, tt.out) { t.Errorf("ParseIP(%#q) = %v, want %v", tt.in, out, tt.out) } |