* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2014-05-27 11:57:41 +00:00
Родитель f32a843fef
Коммит bef1b7f1ca
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Tue May 27 20:56:49 2014 Kouhei Sutou <kou@cozmixng.org>
* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.
Tue May 27 20:26:06 2014 NAKAMURA Usaku <usa@ruby-lang.org>
* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are

Просмотреть файл

@ -155,31 +155,31 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
def test_set_type_signed
p7 = OpenSSL::PKCS7.new
p7.type = "signed"
assert_equal(p7.type, :signed)
assert_equal(:signed, p7.type)
end
def test_set_type_data
p7 = OpenSSL::PKCS7.new
p7.type = "data"
assert_equal(p7.type, :data)
assert_equal(:data, p7.type)
end
def test_set_type_signed_and_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "signedAndEnveloped"
assert_equal(p7.type, :signedAndEnveloped)
assert_equal(:signedAndEnveloped, p7.type)
end
def test_set_type_enveloped
p7 = OpenSSL::PKCS7.new
p7.type = "enveloped"
assert_equal(p7.type, :enveloped)
assert_equal(:enveloped, p7.type)
end
def test_set_type_encrypted
p7 = OpenSSL::PKCS7.new
p7.type = "encrypted"
assert_equal(p7.type, :encrypted)
assert_equal(:encrypted, p7.type)
end
def test_degenerate_pkcs7
@ -290,7 +290,7 @@ END
store = OpenSSL::X509::Store.new
pki_msg.verify(nil, store, nil, OpenSSL::PKCS7::NOVERIFY)
p7enc = OpenSSL::PKCS7.new(pki_msg.data)
assert_equal(p7enc.to_pem, pki_message_content_pem)
assert_equal(pki_message_content_pem, p7enc.to_pem)
end
end