summaryrefslogtreecommitdiff
path: root/spec/ruby/library/zlib/zstream/data_type_spec.rb
blob: 614f0d10a2e06b59f6c5558acd66631af0fad346 (plain)
1
2
3
4
5
6
7
8
9
require File.expand_path('../../../../spec_helper', __FILE__)
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