Sha256: ef3adb50225c1beab074094f312585c5cdecf4a203849001fdfb9b2eb4439111

Contents?: true

Size: 457 Bytes

Versions: 3

Compression:

Stored size: 457 Bytes

Contents

require File.expand_path('spec_helper', File.dirname(__FILE__))

module Imb

  describe CodewordMap do

    let(:characters) do
      [
        0x001F, 0x001F, 0x001F, 0x001F, 0x1524, 
        0x01A3, 0x043C, 0x1838, 0x012B, 0x0076,
      ]
    end
    let(:codewords) {[0, 0, 0, 0, 559, 202, 508, 451, 124, 34]}
    let(:codeword_map) {CodewordMap.new}

    specify do
      expect(codeword_map.characters(codewords)).to eq(characters)
    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
usps_intelligent_barcode-1.0.0 spec/codeword_map_spec.rb
usps_intelligent_barcode-0.3.1 spec/codeword_map_spec.rb
usps_intelligent_barcode-0.3.0 spec/codeword_map_spec.rb