Skip to content

Commit

Permalink
Fix bug where flat_pmap can return nil
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Sep 6, 2015
1 parent cd7afae commit 0c18bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/twitter/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
it 'behaves like flat_map' do
array = (0..4).to_a.combination(2).to_a
block = proc { |x| x.reverse }
expect(subject.flat_pmap(array, &block)).to eq(array.collect(&block).flatten(1))
expect(subject.flat_pmap(array, &block)).to eq(array.flat_map(&block))
end

it 'flat maps in parallel' do
Expand Down

0 comments on commit 0c18bf5

Please sign in to comment.