Sha256: a87db39c22e4751ca6580770475ba0ec12a2e0afbb35c062446b05007d4b7924
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
require 'spec_helper' module Alf describe Summarization, "summarize" do it 'should summarize as expected' do rel = [ {:qty => 10, :size => 12}, {:qty => 5, :size => 5} ] sum = Summarization.coerce(["s", Aggregator.avg{ qty }, "m", Aggregator.max{ size }]) sum.summarize(rel).should eq({:s => 7.5, :m => 12}) 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_summarize.rb |