From: Dmitriy Vyukov Date: Thu, 3 Jul 2014 08:08:24 +0000 (+0400) Subject: crypto/x509: fix format strings in test X-Git-Tag: go1.4beta1~1169 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2ec3a0a72fbe2cdd4affc67383ae67c503e7469b;p=gostls13.git crypto/x509: fix format strings in test 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 --- diff --git a/src/pkg/crypto/x509/pem_decrypt_test.go b/src/pkg/crypto/x509/pem_decrypt_test.go index 59ba6f9001..13e4700bdd 100644 --- a/src/pkg/crypto/x509/pem_decrypt_test.go +++ b/src/pkg/crypto/x509/pem_decrypt_test.go @@ -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)