Sha256: 351241bcc51e371e004091693f0ef99d1c36eb7e5e895b68e41b339a824f348f

Contents?: true

Size: 374 Bytes

Versions: 11

Compression:

Stored size: 374 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
        numeric_to_bytes(0x1234).should == [0x12, 0x34]
      end

      specify do
        numeric_to_bytes(0x1234, 3).should == [0, 0x12, 0x34]
      end

    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

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