#281 √ resolved
mainej

[PATCH] Enumerable min with nils

Reported by mainej | January 26th, 2008 @ 10:08 AM | in 1.0 preview

Enumerable doesn't always correctly find min if the enumerable object contains nils.

> bin/mspec spec/ruby/1.8/core/enumerable/min_spec.rb 
Started
....F

1)
Enumerable#min returns the minimum for enumerables that contain nils FAILED
Expected true to equal nil

This patch fixes that.

> bin/mspec spec/ruby/1.8/core/enumerable/min_spec.rb 
Started
.....

Finished in 0.070289 seconds

5 examples, 31 expectations, 0 failures, 0 errors

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket