]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/elliptic: use %x consistently in error print
authorRuss Cox <rsc@golang.org>
Tue, 27 Sep 2011 13:40:01 +0000 (09:40 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 27 Sep 2011 13:40:01 +0000 (09:40 -0400)
Fixes #2308.

R=agl, gri
CC=golang-dev
https://golang.org/cl/5121052

src/pkg/crypto/elliptic/elliptic_test.go

index b7e7f035fa56c7521c0052c4f275a52f3150efbc..9578364b58f7e80b70824884eb7a5f0198d2c6ea 100644 (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