Sha256: 6cc8e19737f8ad55093c8b30bacc3351d28f3d8dfdfbb2731b69ed00376f06f4

Contents?: true

Size: 384 Bytes

Versions: 3

Compression:

Stored size: 384 Bytes

Contents

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

module Imb

  describe NumericConversions do

    include NumericConversions

    describe '#numeric_to_bytes' do

      specify do
        expect(numeric_to_bytes(0x1234)).to eq([0x12, 0x34])
      end

      specify do
        expect(numeric_to_bytes(0x1234, 3)).to eq([0, 0x12, 0x34])
      end

    end

  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

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