[前][次][番号順一覧][スレッド一覧]

ruby-changes:34088

From: kou <ko1@a...>
Date: Tue, 27 May 2014 20:57:47 +0900 (JST)
Subject: [ruby-changes:34088] kou:r46169 (trunk): * test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.

kou	2014-05-27 20:57:41 +0900 (Tue, 27 May 2014)

  New Revision: 46169

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46169

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

  Modified files:
    trunk/ChangeLog
    trunk/test/openssl/test_pkcs7.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46168)
+++ ChangeLog	(revision 46169)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 27 20:56:49 2014  Kouhei Sutou  <kou@c...>
+
+	* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.
+
 Tue May 27 20:26:06 2014  NAKAMURA Usaku  <usa@r...>
 
 	* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are
Index: test/openssl/test_pkcs7.rb
===================================================================
--- test/openssl/test_pkcs7.rb	(revision 46168)
+++ test/openssl/test_pkcs7.rb	(revision 46169)
@@ -155,31 +155,31 @@ class OpenSSL::TestPKCS7 < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/openssl/test_pkcs7.rb#L155
   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 https://github.com/ruby/ruby/blob/trunk/test/openssl/test_pkcs7.rb#L290
     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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]