Sha256: 039c3a0bea767da8f9390d7825965e4564d3df54165d8387e0826795db150b05
Contents?: true
Size: 655 Bytes
Versions: 3
Compression:
Stored size: 655 Bytes
Contents
require File.expand_path('spec_helper', File.dirname(__FILE__)) module Imb describe BarMap do let(:characters) do [ 0x1FE0, 0x001F, 0x001F, 0x001F, 0x0ADB, 0x01A3, 0x1BC3, 0x1838, 0x012B, 0x0076, ] end let(:codes) do [ 2, 0, 0, 3, 2, 0, 0, 1, 0, 0, 2, 1, 0, 2, 2, 0, 0, 1, 0, 1, 0, 2, 0, 0, 1, 2, 3, 1, 1, 3, 2, 1, 3, 1, 3, 0, 3, 3, 3, 3, 3, 0, 2, 0, 3, 2, 2, 2, 2, 0, 1, 3, 3, 0, 1, 2, 2, 1, 3, 0, 3, 1, 0, 1, 0, ] end let(:bar_map) {BarMap.new} specify do expect(bar_map.symbols(characters).map(&:code)).to eq(codes) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
usps_intelligent_barcode-1.0.0 | spec/bar_map_spec.rb |
usps_intelligent_barcode-0.3.1 | spec/bar_map_spec.rb |
usps_intelligent_barcode-0.3.0 | spec/bar_map_spec.rb |