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

src/pkg/strings/strings_test.go

index 5308e8b7e412733626873ee28f1ff86199d67325..957af67b2ba5d4aa4505bfc409a4e19cb1015394 100644 (file)
@@ -527,7 +527,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 := f(tc.in, tc.cutset)
                if actual != tc.out {