Actions
Bug #2276
closedArray#<=> should not raise when comparison fails
Description
=begin
Since the addition of Object#<=>, the only comparison that raised an error was Array#<=>(not_an_array).
Array#<=>(obj) now returns nil if obj is not array-like.
Maybe this should also be applied in the 1.8 line?
Note: neither test-all nor rubyspec were testing for this.
=end
No data to display
Actions
Like0