Sha256: 75bfc3408159b5d1385e04f942f9101c8a98b8c897b1bc0efcc0715cd6ba1a17
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe Reputation::Functions::Linear do it_should_behave_like "any function" describe "instance method" do describe "'f'" do it "should have an adjustable gradient" do function_1 = Reputation::Functions::Linear.new :m => 1 function_2 = Reputation::Functions::Linear.new :m => 2 function_3 = Reputation::Functions::Linear.new :m => 3 function_1.f(0.25).should eql 0.25 function_2.f(0.25).should eql 0.5 function_3.f(0.25).should eql 0.75 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems