1
0
mirror of https://github.com/golang/go synced 2024-09-24 23:10:12 -06:00

crypto/elliptic: use %x consistently in error print

Fixes #2308.

R=agl, gri
CC=golang-dev
https://golang.org/cl/5121052
This commit is contained in:
Russ Cox 2011-09-27 09:40:01 -04:00
parent a1a3acbd95
commit 7b1c1811a5

View File

@ -295,7 +295,7 @@ func TestBaseMult(t *testing.T) {
}
x, y := p224.ScalarBaseMult(k.Bytes())
if fmt.Sprintf("%x", x) != e.x || fmt.Sprintf("%x", y) != e.y {
t.Errorf("%d: bad output for k=%s: got (%x, %s), want (%s, %s)", i, e.k, x, y, e.x, e.y)
t.Errorf("%d: bad output for k=%s: got (%x, %s), want (%x, %s)", i, e.k, x, y, e.x, e.y)
}
if testing.Short() && i > 5 {
break