Sha256: 6ff023d9b2d0647633489e42e1f16bcc1db05860ecc1ee999d7e93f48ed79dd4

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'
require 'bioinform/support/array_zip'

describe Array do
  context '::zip' do
    it 'should take any number of arrays and zip them as if #zip was made to first and others' do
      Array.zip([1,2,3]).should == [1,2,3].zip()
      Array.zip([1,2,3],[4,5,6]).should == [1,2,3].zip([4,5,6])
      Array.zip([1,2,3],[4,5,6],[7,8,9]).should == [1,2,3].zip([4,5,6],[7,8,9])
    end
    it 'should return empty array if no arrays\'re given' do
      Array.zip().should == []
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bioinform-0.1.7 spec/support/array_zip_spec.rb
bioinform-0.1.6 spec/support/array_zip_spec.rb
bioinform-0.1.5 spec/support/array_zip_spec.rb
bioinform-0.1.4 spec/support/array_zip_spec.rb
bioinform-0.1.3 spec/support/array_zip_spec.rb