Sha256: 7d147634069682fa819b1b9d4e73e1c29412106d5e508493d59279dcd17dcdb0

Contents?: true

Size: 301 Bytes

Versions: 1

Compression:

Stored size: 301 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Rstat do
  describe ".binomial_coefficient" do
    it "computes the binomial coeffecient of itself and another number" do
      10.binomial_coefficient(4).should eq(210)

      50.binomial_coefficient(34).should eq(4_923_689_695_575)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rstat-0.1.0 spec/rstat/fixnum_spec.rb