Project

General

Profile

Bug #14350

Updated by artofhuman (Semyon Pupkov) almost 7 years ago

2.4.2 

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

 => 1 
 ~~~ 

 2.5.0 

 
 ~~~ ruby 
 [[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

Back