diff options
Diffstat (limited to 'test/zlib')
-rw-r--r-- | test/zlib/test_zlib.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/zlib/test_zlib.rb b/test/zlib/test_zlib.rb index 1aaf3fac8c..6b13cf6026 100644 --- a/test/zlib/test_zlib.rb +++ b/test/zlib/test_zlib.rb @@ -665,7 +665,11 @@ if defined? Zlib 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 @@ if defined? Zlib 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 |