Sha256: fe52fb467658452ecf7497ce60d0a4d7333229505e469c57f2ed7020451c8607

Contents?: true

Size: 227 Bytes

Versions: 4

Compression:

Stored size: 227 Bytes

Contents

require 'zlib'

describe "Zlib::ZStream#data_type" do
  it "returns the type of the data in the stream" do
    z = Zlib::Deflate.new
    [Zlib::ASCII, Zlib::BINARY, Zlib::UNKNOWN].include?(z.data_type).should == true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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