Sha256: a105b9779f65bfe4d9a676dad4c4198dc318315f182d6da3960f9514d1d5d9a0

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 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)
    expect(HexDump.encode(str)).to 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.3.0 spec/hexdump_spec.rb
glebtv-httpclient-3.2.8 spec/hexdump_spec.rb