Sha256: 3e8c32d14a20975748b5d196cd74385f533dd9c5c0469afb0efb35f92c58670c

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

# coding: utf-8
require 'spec_helper'
require 'hexdump'

describe 'HexDump' do
  it 'encode' do
    str = "\032l\277\370\2429\216\236\351[{\{\262\350\274\376"
    str.force_encoding('BINARY') if str.respond_to?(:force_encoding)
    HexDump.encode(str).should eq ["00000000  1a6cbff8 a2398e9e e95b7b7b b2e8bcfe   .l...9...[{{...."]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
glebtv-httpclient-3.2.7 spec/hexdump_spec.rb
glebtv-httpclient-3.2.6 spec/hexdump_spec.rb