Sha256: 0f8aaea8c32c5717739998363e6b26d5b678d36a1a1b7e35e5356e9615b963c8

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 Bytes

Contents

# frozen_string_literal: true

describe SlowEnumeratorTools do
  it 'has a version number' do
    expect(SlowEnumeratorTools::VERSION).not_to be nil
  end

  it 'supports .merge shorthand' do
    expect(SlowEnumeratorTools.merge([[1, 2], [3, 4]]).to_a)
      .to match_array([1, 2, 3, 4])
  end

  it 'supports .batch shorthand' do
    expect(SlowEnumeratorTools.batch([1, 2]).to_a)
      .to match_array([[1, 2]])
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slow_enumerator_tools-1.0.0 spec/slow_enumerator_tools_spec.rb