Sha256: 7f22287cec6d8b600e2e4b2c94f7982eb313cceb4ace4ad786681788162c76c8

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

require 'helper'

class TestZlibCrc32Combine < Test::Unit::TestCase
  
  def test_crc32_combine
    one = Zlib.crc32("fo")
    two = Zlib.crc32("o")
    assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1))
  end
  
  def test_adler32_combine
    one = Zlib.adler32("fo")
    two = Zlib.adler32("o")
    assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1))
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zlib-crc32_combine-1.0.2 test/test_zlib-crc32_combine.rb
zlib-crc32_combine-1.0.1 test/test_zlib-crc32_combine.rb
zlib-crc32_combine-1.0.0 test/test_zlib-crc32_combine.rb