Sha256: d48f9cfbdab411b2dbf72aa2319bd0e2aa02bdf9e0d5f26e736b50e9b1d3fa0f
Contents?: true
Size: 480 Bytes
Versions: 4
Compression:
Stored size: 480 Bytes
Contents
require 'helper' RSpec.describe HTTP2::Buffer do let(:b) { Buffer.new('émalgré') } it 'should force 8-bit encoding' do expect(b.encoding.to_s).to eq 'ASCII-8BIT' end it 'should return bytesize of the buffer' do expect(b.size).to eq 9 end it 'should read single byte at a time' do 9.times { expect(b.read(1)).not_to be_nil } end it 'should unpack an unsigned 32-bit int' do expect(Buffer.new([256].pack('N')).read_uint32).to eq 256 end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
mieps_http-2-0.8.2 | spec/buffer_spec.rb |
mieps_http-2-0.8.1 | spec/buffer_spec.rb |
mieps_http-2-0.8.0 | spec/buffer_spec.rb |
http-2-0.8.0 | spec/buffer_spec.rb |