diff options
| author | Russ Cox <rsc@golang.org> | 2010-09-24 11:55:48 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2010-09-24 11:55:48 -0400 |
| commit | 2ee420fa5ebe212926ee077e0b892839307ef88f (patch) | |
| tree | 2e4b0c76ea370977972f9a034cb695dae77f5567 /src/pkg/testing/testing.go | |
| parent | 75dd8fdb34126f0964f4276bf70858e2a1335efe (diff) | |
| download | go-2ee420fa5ebe212926ee077e0b892839307ef88f.tar.xz | |
... changes
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/2273042
Diffstat (limited to 'src/pkg/testing/testing.go')
| -rw-r--r-- | src/pkg/testing/testing.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index 763b65b05c..a3a7e5994d 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -89,35 +89,35 @@ func (t *T) FailNow() { // Log formats its arguments using default formatting, analogous to Print(), // and records the text in the error log. -func (t *T) Log(args ...interface{}) { t.errors += "\t" + tabify(fmt.Sprintln(args)) } +func (t *T) Log(args ...interface{}) { 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 ...interface{}) { - t.errors += "\t" + tabify(fmt.Sprintf(format, args)) + t.errors += "\t" + tabify(fmt.Sprintf(format, args...)) } // Error is equivalent to Log() followed by Fail(). func (t *T) Error(args ...interface{}) { - t.Log(args) + t.Log(args...) t.Fail() } // Errorf is equivalent to Logf() followed by Fail(). func (t *T) Errorf(format string, args ...interface{}) { - t.Logf(format, args) + t.Logf(format, args...) t.Fail() } // Fatal is equivalent to Log() followed by FailNow(). func (t *T) Fatal(args ...interface{}) { - t.Log(args) + t.Log(args...) t.FailNow() } // Fatalf is equivalent to Logf() followed by FailNow(). func (t *T) Fatalf(format string, args ...interface{}) { - t.Logf(format, args) + t.Logf(format, args...) t.FailNow() } |
