Sha256: 4a8bc1217db8284073e52f7afb7e7a96b548633213e2768cc8036ea028c17e8f

Contents?: true

Size: 262 Bytes

Versions: 3

Compression:

Stored size: 262 Bytes

Contents

require "spec_helper"

describe Fortune::Pn_repetition do

  describe "calc" do
    it "get Permutation with repetition value for 5 elements and 10 groups" do
      Fortune::Pn_repetition.calc(:elements => 5, :groups => 10).should eq 100000
    end
  end

end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fortune-0.0.3 spec/fortune/pn_repetition_spec.rb
fortune-0.0.2 spec/fortune/pn_repetition_spec.rb
fortune-0.0.1 spec/fortune/pn_repetition_spec.rb