Sha256: 75127fef89480811edeb6ed93f28d07499dc33e66b7d704ae8a64e724399ce23

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 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
      codeword_map.characters(codewords).should == characters
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
USPS-intelligent-barcode-0.2.7 spec/codeword_map_spec.rb
USPS-intelligent-barcode-0.2.6 spec/codeword_map_spec.rb
USPS-intelligent-barcode-0.2.5 spec/codeword_map_spec.rb
USPS-intelligent-barcode-0.2.4 spec/codeword_map_spec.rb
USPS-intelligent-barcode-0.2.3 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.2.2 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.2.1 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.2.0 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.1.2 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.1.1 spec/CodewordMap_spec.rb
USPS-intelligent-barcode-0.1.0 spec/CodewordMap_spec.rb