]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: fix format strings in test
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 3 Jul 2014 08:08:24 +0000 (12:08 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 3 Jul 2014 08:08:24 +0000 (12:08 +0400)
Currently it says:
--- PASS: TestDecrypt-2 (0.11s)
pem_decrypt_test.go:17: test 0. %!s(x509.PEMCipher=1)
--- PASS: TestEncrypt-2 (0.00s)
pem_decrypt_test.go:42: test 0. %!s(x509.PEMCipher=1)

LGTM=alex.brainman
R=golang-codereviews, alex.brainman
CC=golang-codereviews
https://golang.org/cl/108400044

src/pkg/crypto/x509/pem_decrypt_test.go

index 59ba6f90019a2d58955b8416a91d82ae60bfe4dc..13e4700bddade6007081b4ac0d20e8aa1d064178 100644 (file)
@@ -14,7 +14,7 @@ import (
 
 func TestDecrypt(t *testing.T) {
        for i, data := range testData {
-               t.Logf("test %d. %s", i, data.kind)
+               t.Logf("test %v. %v", i, data.kind)
                block, rest := pem.Decode(data.pemData)
                if len(rest) > 0 {
                        t.Error("extra data")
@@ -39,7 +39,7 @@ func TestDecrypt(t *testing.T) {
 
 func TestEncrypt(t *testing.T) {
        for i, data := range testData {
-               t.Logf("test %d. %s", i, data.kind)
+               t.Logf("test %v. %v", i, data.kind)
                plainDER, err := base64.StdEncoding.DecodeString(data.plainDER)
                if err != nil {
                        t.Fatal("cannot decode test DER data: ", err)