tests: fix prints

- delete unnecessary newlines
- make sure formatted prints call the formatting routines

R=adg
CC=golang-dev
https://golang.org/cl/2225046
This commit is contained in:
Rob Pike 2010-09-23 13:48:56 +10:00
parent c10865ce53
commit 1959c3ac5b
26 changed files with 262 additions and 262 deletions

View file

@ -64,7 +64,7 @@ func TestUintCodec(t *testing.T) {
t.Error("DecodeUint:", u, decState.err)
}
if u != v {
t.Errorf("Encode/Decode: sent %#x received %#x\n", u, v)
t.Errorf("Encode/Decode: sent %#x received %#x", u, v)
}
if u&(1<<63) != 0 {
break
@ -87,7 +87,7 @@ func verifyInt(i int64, t *testing.T) {
t.Error("DecodeInt:", i, decState.err)
}
if i != j {
t.Errorf("Encode/Decode: sent %#x received %#x\n", uint64(i), uint64(j))
t.Errorf("Encode/Decode: sent %#x received %#x", uint64(i), uint64(j))
}
}