* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine): skip if
they are not implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5b5ab0935
commit
fa1044927f
@ -665,7 +665,11 @@ if defined? Zlib
|
|||||||
def test_adler32_combine
|
def test_adler32_combine
|
||||||
one = Zlib.adler32("fo")
|
one = Zlib.adler32("fo")
|
||||||
two = Zlib.adler32("o")
|
two = Zlib.adler32("o")
|
||||||
|
begin
|
||||||
assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1))
|
assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1))
|
||||||
|
rescue NotImplementedError
|
||||||
|
skip "adler32_combine is not implemented"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_crc32
|
def test_crc32
|
||||||
@ -678,7 +682,11 @@ if defined? Zlib
|
|||||||
def test_crc32_combine
|
def test_crc32_combine
|
||||||
one = Zlib.crc32("fo")
|
one = Zlib.crc32("fo")
|
||||||
two = Zlib.crc32("o")
|
two = Zlib.crc32("o")
|
||||||
|
begin
|
||||||
assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1))
|
assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1))
|
||||||
|
rescue NotImplementedError
|
||||||
|
skip "crc32_combine is not implemented"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_crc_table
|
def test_crc_table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user