* test/digest/test_digest.rb: Reverse order of assert_equal

Reported by @splattael


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-11-22 00:43:08 +00:00
Родитель 215a7da2a6
Коммит d553c518d5
2 изменённых файлов: 8 добавлений и 3 удалений

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

@ -1,3 +1,8 @@
Fri Nov 22 09:42:35 2013 Zachary Scott <e@zzak.io>
* test/digest/test_digest.rb: Reverse order of assert_equal
Reported by @splattael
Fri Nov 22 09:03:16 2013 NARUSE, Yui <naruse@ruby-lang.org>
* gc.c: fix build failure on FreeBSD introduced by r43763.

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

@ -106,19 +106,19 @@ module TestDigest
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