1
0
mirror of https://github.com/golang/go synced 2024-11-25 11:07:59 -07:00

bytes: fix test output

R=rsc, gri
CC=golang-dev
https://golang.org/cl/5441048
This commit is contained in:
Christopher Wedgwood 2011-11-28 09:50:51 -08:00 committed by Robert Griesemer
parent 62203141ac
commit 7600281bda

View File

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