Sha256: 86b56313e4b3de9411d574d53bbadebc99b3e7ab5625948f992b56417a46ad0a

Contents?: true

Size: 589 Bytes

Versions: 7

Compression:

Stored size: 589 Bytes

Contents

require 'spec/spec_helper'
require 'extensions/array'

describe 'Array Extensions' do
  it "should know if elements are not equivilent to a subset of those elements" do
    [1,2,3].should_not be_equivalent([2,3])
  end
  it "should know if elements are not equivilent to a larger set including those elements" do
    [1,2,3].should_not be_equivalent([1,2,3,4])
  end  
  it "should know it is equivalent if the same order" do
    [1,2,3].should be_equivalent([1,2,3])
  end
  it "should know it is equivalent if the different orders" do
    [1,2,3].should be_equivalent([2,1,3])
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
makevoid-taza-0.8.6 spec/array_spec.rb
scudco-taza-0.8.5 spec/array_spec.rb
scudco-taza-0.8.6 spec/array_spec.rb
scudco-taza-0.8.7 spec/array_spec.rb
taza-0.8.5 spec/array_spec.rb
taza-0.8.6 spec/array_spec.rb
taza-0.8.7 spec/array_spec.rb