Sha256: 84609dc44c357451cd5bbdc8979021dbfbf7d5148ef46e0e853514534d19d6b4

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

RSpec.describe Fear::For::Mixin do
  include Fear::For::Mixin

  describe "For()" do
    subject do
      For([1, 2], [2, 3], [3, 4]) do |a, b, c|
        a * b * c
      end
    end

    it { is_expected.to eq([6, 8, 9, 12, 12, 16, 18, 24]) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fear-3.0.0 spec/fear/for/mixin_spec.rb
fear-2.0.1 spec/fear/for/mixin_spec.rb
fear-2.0.0 spec/fear/for/mixin_spec.rb