Sha256: 0609c03b8fba17f4b80175ffa9c1b8bda7fa4cc5c0ff9af9a91598887e9a7616

Contents?: true

Size: 185 Bytes

Versions: 5

Compression:

Stored size: 185 Bytes

Contents

require 'spec_helper'

module Mork
  describe Array do
    it 'computes the average' do
      a = [ 20, 23, 23, 24, 25, 22, 12, 21, 28 ]
      expect(a.mean).to eq 22
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mork-0.10.0 spec/mork/extensions_spec.rb
mork-0.9.3 spec/mork/extensions_spec.rb
mork-0.9.2 spec/mork/extensions_spec.rb
mork-0.9.1 spec/mork/extensions_spec.rb
mork-0.9.0 spec/mork/extensions_spec.rb