Project

General

Profile

Actions

Bug #14350

closed

Strange behavior for Array.min in ruby 2.5.0

Added by artofhuman (Semyon Pupkov) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:84821]

Description

2.4.2

[[1, 0.0].max, 1.0].min

=> 1

2.5.0

[[1, 0.0].max, 1.0].min

=> 1.0

[[1, 0.0].max, 1.0]

=> [1, 1.0]

[1, 1.0].min

=> 1

I think it`s regression for ruby 2.5.0

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0