summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib/zstream/adler_spec.rb
blob: 55ac8ae79ea131c06ddae0541aa825e937fa8801 (plain)
1
2
3
4
5
6
7
8
9
10
11
require_relative '../../../spec_helper'
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