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

ruby-changes:31691

From: zzak <ko1@a...>
Date: Fri, 22 Nov 2013 09:43:21 +0900 (JST)
Subject: [ruby-changes:31691] zzak:r43770 (trunk): * test/digest/test_digest.rb: Reverse order of assert_equal

zzak	2013-11-22 09:43:08 +0900 (Fri, 22 Nov 2013)

  New Revision: 43770

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

  Log:
    * test/digest/test_digest.rb: Reverse order of assert_equal
      Reported by @splattael

  Modified files:
    trunk/ChangeLog
    trunk/test/digest/test_digest.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43769)
+++ ChangeLog	(revision 43770)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov 22 09:42:35 2013  Zachary Scott  <e@z...>
+
+	* test/digest/test_digest.rb: Reverse order of assert_equal
+	  Reported by @splattael
+
 Fri Nov 22 09:03:16 2013  NARUSE, Yui  <naruse@r...>
 
 	* gc.c: fix build failure on FreeBSD introduced by r43763.
Index: test/digest/test_digest.rb
===================================================================
--- test/digest/test_digest.rb	(revision 43769)
+++ test/digest/test_digest.rb	(revision 43770)
@@ -106,19 +106,19 @@ module TestDigest https://github.com/ruby/ruby/blob/trunk/test/digest/test_digest.rb#L106
 
   def test_bubblebabble
     expected = "xirek-hasol-fumik-lanax"
-    assert_equal Digest.bubblebabble('message'), expected
+    assert_equal expected, Digest.bubblebabble('message')
   end
 
   def test_bubblebabble_class
     expected = "xopoh-fedac-fenyh-nehon-mopel-nivor-lumiz-rypon-gyfot-cosyz-rimez-lolyv-pekyz-rosud-ricob-surac-toxox"
-    assert_equal Digest::SHA256.bubblebabble('message'), expected
+    assert_equal expected, Digest::SHA256.bubblebabble('message')
   end
 
   def test_bubblebabble_instance
     expected = "xumor-boceg-dakuz-sulic-gukoz-rutas-mekek-zovud-gunap-vabov-genin-rygyg-sanun-hykac-ruvah-dovah-huxex"
 
     hash = Digest::SHA256.new
-    assert_equal hash.bubblebabble, expected
+    assert_equal expected, hash.bubblebabble
   end
 
   class TestMD5 < Test::Unit::TestCase

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

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