Permalink
Browse files

Fixed ordering issues with Set on Ruby 1.8.7.

  • Loading branch information...
1 parent d302d65 commit 0c0409e70758a2590e2371ff94375a6ae8f1d5f7 @postmodern committed Oct 15, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/choose/mixin_examples.rb
  2. +2 −2 spec/permute/mixin_examples.rb
@@ -29,7 +29,7 @@
set = subject[1, 2]
results = set.choose(1).to_a
- results.should == [Set[1], Set[2]]
+ results.should =~ [Set[1], Set[2]]
end
it "should return [[1, 2]] for [1, 2].choose(2).to_a" do
@@ -29,14 +29,14 @@
set = subject[1, 2]
results = set.permute(1).to_a
- results.should == [[1], [2]]
+ results.should =~ [[1], [2]]
end
it "should return [[1, 2]] for [1, 2].permute(2).to_a" do
set = subject[1, 2]
results = set.permute(2).to_a
- results.should == [[1, 2], [2, 1]]
+ results.should =~ [[1, 2], [2, 1]]
end
end
end

0 comments on commit 0c0409e

Please sign in to comment.