Sha256: ae02ba3a7ae61fa03a1134e5959b132fe5e46a933c7f45b95f1dc7d93c5f24f3
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 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 it 'supports .buffer shorthand' do expect(SlowEnumeratorTools.buffer([1, 2], 5).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.1.0 | spec/slow_enumerator_tools_spec.rb |