Sha256: f4a49a1ee8af8836c1f817c7f7922ba44f1c8eb423c3793e8919b7c57095e81c

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

require 'spec_helper'
module Alf
  describe Summarization, "least" do

    it 'should invoke least on each aggregator' do
      sum = Summarization.coerce(["s", Aggregator.avg{ qty }, "m", Aggregator.max{ size }])
      sum.least.should eq({:s => [0.0, 0.0], :m => nil})
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-types/summarization/test_least.rb