Sha256: ae63cabbb9b99dc2fb46f5c5a39a28eee7931bd79ae2b4fa6e992f29a15f457c
Contents?: true
Size: 661 Bytes
Versions: 53
Compression:
Stored size: 661 Bytes
Contents
require 'spec_helper' describe Cacher::WeightsGenerator do context 'integration' do it 'should generate the correct values' do generator = Cacher::WeightsGenerator.new :a => Array.new(0), :b => Array.new(1), :c => Array.new(10), :d => Array.new(100), :e => Array.new(1000) result = generator.generate result[:c].should be_close 2.3, 0.011 result[:d].should be_close 4.6, 0.011 result[:e].should be_close 6.9, 0.011 end end end
Version data entries
53 entries across 53 versions & 1 rubygems