Skip to content
  • nagachika's avatar
    217ef2bf
    merge revision(s) 25711683: [Backport #19864] · 217ef2bf
    nagachika authored
    	Fix regression when testing inclusion in unbounded ranges
    
    	Caused by 04a92a67.  This treats
    	unbounded ranges of arbitrary objects the same as how unbounded
    	string ranges are treated:
    
    	  (..x)  === y  # (y <=> x) <= 0
    	  (...x) === y  # (y <=> x) <  0
    	  (x..)  === y  # (x <=> y) <= 0
    
    	Fixes [Bug #19864]
    	---
    	 range.c                 |  9 +++++++++
    	 test/ruby/test_range.rb | 23 +++++++++++++++++++++++
    	 2 files changed, 32 insertions(+)
    217ef2bf
    merge revision(s) 25711683: [Backport #19864]
    nagachika authored
    	Fix regression when testing inclusion in unbounded ranges
    
    	Caused by 04a92a67.  This treats
    	unbounded ranges of arbitrary objects the same as how unbounded
    	string ranges are treated:
    
    	  (..x)  === y  # (y <=> x) <= 0
    	  (...x) === y  # (y <=> x) <  0
    	  (x..)  === y  # (x <=> y) <= 0
    
    	Fixes [Bug #19864]
    	---
    	 range.c                 |  9 +++++++++
    	 test/ruby/test_range.rb | 23 +++++++++++++++++++++++
    	 2 files changed, 32 insertions(+)
Loading