blob: 59a0622903eb07ec5619f7c0a26067f2fae66769 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
|