Sha256: 5e12dc16f1f1cdfe152c030c24ee7fbc6b6038e02847a4b03e6e4e80fc52f362

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

# -*- encoding: US-ASCII -*-
require 'zlib'

describe "Zlib::Deflate#set_dictionary" do
  it "sets the dictionary" do
    d = Zlib::Deflate.new
    d.set_dictionary 'aaaaaaaaaa'
    d << 'abcdefghij'

    d.finish.should ==
      "x\273\024\341\003\313KLJNIMK\317\310\314\002\000\025\206\003\370"
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysl-zlib-1.0.1 spec/deflate/set_dictionary_spec.rb
rubysl-zlib-2.0.1 spec/deflate/set_dictionary_spec.rb
rubysl-zlib-1.0.0 spec/deflate/set_dictionary_spec.rb
rubysl-zlib-2.0.0 spec/deflate/set_dictionary_spec.rb