Sha256: c0a8a6830e1dbb12fe88696e7217aa2244e1a6e5a2e855f187e26ac5cdb6eac7

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

require 'zlib'

describe "Zlib::ZStream#flush_next_out" do

  it "flushes the stream and flushes the output buffer" do
    zs = Zlib::Inflate.new
    zs << "x\234K\313\317\a\000\002\202\001E"

    zs.flush_next_out.should == 'foo'
    zs.finished?.should == true
    zs.flush_next_out.should == ''
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

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