Skip to content

Commit

Permalink
Merge pull request #1140 from ruby/remove_senseless_spec
Browse files Browse the repository at this point in the history
Remove senseless spec.
  • Loading branch information
andrykonchin committed Mar 11, 2024
2 parents 408e230 + 8fd23da commit f23d158
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/enumerator/product/size_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ def enum.size; Float::INFINITY; end
product.size.should == Float::INFINITY
end

it "returns -Float::INFINITY if any enumerable reports its size as -Float::INFINITY" do
enum = Object.new
def enum.size; -Float::INFINITY; end

product = Enumerator::Product.new(1..2, enum)
product.size.should == -Float::INFINITY
end

it "returns nil if any enumerable reports its size as Float::NAN" do
enum = Object.new
def enum.size; Float::NAN; end
Expand Down

0 comments on commit f23d158

Please sign in to comment.