all: fix some vet-caught formatting errors, mostly but not only in tests

Could go in 1.5, although not critical.
See also #12107

Change-Id: I7f1608b58581d21df4db58f0db654fef79e33a90
Reviewed-on: https://go-review.googlesource.com/13481
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
Rob Pike 2015-08-11 15:29:40 +10:00
parent 39e77bff85
commit f62b749ae2
9 changed files with 15 additions and 15 deletions

View file

@ -91,11 +91,11 @@ func testNonceSafety(t *testing.T, c elliptic.Curve, tag string) {
if s0.Cmp(s1) == 0 {
// This should never happen.
t.Errorf("%s: the signatures on two different messages were the same")
t.Errorf("%s: the signatures on two different messages were the same", tag)
}
if r0.Cmp(r1) == 0 {
t.Errorf("%s: the nonce used for two diferent messages was the same")
t.Errorf("%s: the nonce used for two diferent messages was the same", tag)
}
}
@ -126,11 +126,11 @@ func testINDCCA(t *testing.T, c elliptic.Curve, tag string) {
}
if s0.Cmp(s1) == 0 {
t.Errorf("%s: two signatures of the same message produced the same result")
t.Errorf("%s: two signatures of the same message produced the same result", tag)
}
if r0.Cmp(r1) == 0 {
t.Errorf("%s: two signatures of the same message produced the same nonce")
t.Errorf("%s: two signatures of the same message produced the same nonce", tag)
}
}