blob: f80d8287ced09cb69abdac25c7454be13c5ca13c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require_relative '../../../spec_helper'
require 'zlib'
describe "Zlib::ZStream#flush_next_out" do
it "flushes the stream and flushes the output buffer" do
zs = Zlib::Inflate.new
zs << [120, 156, 75, 203, 207, 7, 0, 2, 130, 1, 69].pack('C*')
zs.flush_next_out.should == 'foo'
zs.finished?.should == true
zs.flush_next_out.should == ''
end
end
|