Sha256: 21a0c6b3e6b28664e3502910b11c61a15e642e24f0d5a30ac05d8389d692237a

Contents?: true

Size: 172 Bytes

Versions: 4

Compression:

Stored size: 172 Bytes

Contents

require 'zlib'

describe "Zlib::ZStream#adler" do
  it "generates hash" do
    z = Zlib::Deflate.new
    z << "foo"
    z.finish
    z.adler.should == 0x02820145
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-zlib-1.0.1 spec/zstream/adler_spec.rb
rubysl-zlib-2.0.1 spec/zstream/adler_spec.rb
rubysl-zlib-1.0.0 spec/zstream/adler_spec.rb
rubysl-zlib-2.0.0 spec/zstream/adler_spec.rb