]> Cypherpunks repositories - gostls13.git/commitdiff
bytes: fix test output
authorChristopher Wedgwood <cw@f00f.org>
Mon, 28 Nov 2011 17:50:51 +0000 (09:50 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 28 Nov 2011 17:50:51 +0000 (09:50 -0800)
R=rsc, gri
CC=golang-dev
https://golang.org/cl/5441048

src/pkg/bytes/bytes_test.go

index 21a1a4f5808fee29a7fdc28bd19588a8ebcaa4ed..829ef05319c41a0555b2b8cf9eec068a8412f368 100644 (file)
@@ -702,7 +702,7 @@ func TestTrim(t *testing.T) {
                case "TrimRight":
                        f = TrimRight
                default:
-                       t.Error("Undefined trim function %s", name)
+                       t.Errorf("Undefined trim function %s", name)
                }
                actual := string(f([]byte(tc.in), tc.cutset))
                if actual != tc.out {