diff options
| author | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2009-11-09 12:07:39 -0800 |
| commit | e940edc7a026293153ba09ece40e8092a2fc2463 (patch) | |
| tree | c94a425c84b7a48f91a5d76a222effad70c9a88c /src/pkg/testing/testing.go | |
| parent | e067f862f1774ab89a2096a88571a94e3b9cd353 (diff) | |
| download | golang-e940edc7a026293153ba09ece40e8092a2fc2463.tar.gz | |
remove semis after statements in one-statement statement lists
R=rsc, r
http://go/go-review/1025029
Diffstat (limited to 'src/pkg/testing/testing.go')
| -rw-r--r-- | src/pkg/testing/testing.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index b04e8d40c..62c79e0b3 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -32,7 +32,7 @@ func tabify(s string) string { } for i := 0; i < n-1; i++ { // -1 to avoid final newline if s[i] == '\n' { - return s[0 : i+1]+"\t"+tabify(s[i+1 : n]); + return s[0 : i+1]+"\t"+tabify(s[i+1 : n]) } } return s; @@ -67,7 +67,7 @@ func (t *T) Log(args ...) { t.errors += "\t"+tabify(fmt.Sprintln(args)) } // Log formats its arguments according to the format, analogous to Printf(), // and records the text in the error log. func (t *T) Logf(format string, args ...) { - t.errors += "\t"+tabify(fmt.Sprintf(format, args)); + t.errors += "\t"+tabify(fmt.Sprintf(format, args)) } // Error is equivalent to Log() followed by Fail(). @@ -112,7 +112,7 @@ func Main(tests []Test) { flag.Parse(); ok := true; if len(tests) == 0 { - println("testing: warning: no tests to run"); + println("testing: warning: no tests to run") } re, err := CompileRegexp(*match); if err != "" { @@ -121,10 +121,10 @@ func Main(tests []Test) { } for i := 0; i < len(tests); i++ { if !re.MatchString(tests[i].Name) { - continue; + continue } if *chatty { - println("=== RUN ", tests[i].Name); + println("=== RUN ", tests[i].Name) } t := new(T); t.ch = make(chan *T); |
