ruby-changes:15936
From: usa <ko1@a...>
Date: Wed, 19 May 2010 11:43:04 +0900 (JST)
Subject: [ruby-changes:15936] Ruby:r27877 (trunk): * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if
usa 2010-05-19 11:42:57 +0900 (Wed, 19 May 2010) New Revision: 27877 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27877 Log: * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if they are not implemented. Modified files: trunk/test/zlib/test_zlib.rb Index: test/zlib/test_zlib.rb =================================================================== --- test/zlib/test_zlib.rb (revision 27876) +++ test/zlib/test_zlib.rb (revision 27877) @@ -665,7 +665,11 @@ def test_adler32_combine one = Zlib.adler32("fo") two = Zlib.adler32("o") - assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1)) + begin + assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1)) + rescue NotImplementedError + skip "adler32_combine is not implemented" + end end def test_crc32 @@ -678,7 +682,11 @@ def test_crc32_combine one = Zlib.crc32("fo") two = Zlib.crc32("o") - assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1)) + begin + assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1)) + rescue NotImplementedError + skip "crc32_combine is not implemented" + end end def test_crc_table -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/