blob: 63676a82032ae4eef3fff12f3074309e6fd1849b (
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.should.finished?
zs.flush_next_out.should == ''
end
end
|