Sha256: 9f56b9c7f9cada8cce9e54f765ee8ebfcbc0c740bbdb7c3663538b30498a005d

Contents?: true

Size: 268 Bytes

Versions: 31

Compression:

Stored size: 268 Bytes

Contents

require 'epitools/basetypes'
require 'epitools/permutations'

describe "Permutations" do
  
  it "a*b" do
    ([1,2] * [3,4]).should == [ [1,3], [1,4], [2,3], [2,4] ]
  end    

  it "a**2" do
    ([1,2] ** 2).should == [ [1,1], [1,2], [2,1], [2,2] ]
  end    
  
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
epitools-0.4.15 spec/permutations_spec.rb
epitools-0.4.14 spec/permutations_spec.rb
epitools-0.4.13 spec/permutations_spec.rb
epitools-0.4.10 spec/permutations_spec.rb
epitools-0.4.9 spec/permutations_spec.rb
epitools-0.4.8 spec/permutations_spec.rb
epitools-0.4.7 spec/permutations_spec.rb
epitools-0.4.6 spec/permutations_spec.rb
epitools-0.4.5 spec/permutations_spec.rb
epitools-0.4.4 spec/permutations_spec.rb
epitools-0.4.3 spec/permutations_spec.rb
epitools-0.4.2 spec/permutations_spec.rb
epitools-0.4.1 spec/permutations_spec.rb
epitools-0.4.0 spec/permutations_spec.rb
epitools-0.3.4 spec/permutations_spec.rb
epitools-0.3.3 spec/permutations_spec.rb
epitools-0.3.2 spec/permutations_spec.rb
epitools-0.3.1 spec/permutations_spec.rb
epitools-0.3.0 spec/permutations_spec.rb
epitools-0.2.1 spec/permutations_spec.rb