summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line
diff options
context:
space:
mode:
authornagachika <nagachika@ruby-lang.org>2023-09-24 13:48:08 +0900
committernagachika <nagachika@ruby-lang.org>2023-09-24 13:48:08 +0900
commit217ef2bf89b3861e83c2e2a3a633c019f0731de6 (patch)
tree25742ba8b2dd1b8e15371bc9aae8a0ef6bd54f59 /spec/ruby/command_line
parenta7335e11e354d1ee2e15233f32f087230069ad5c (diff)
merge revision(s) 25711683e86271385e8abe09a9c03782000e48db: [Backport #19864]
Fix regression when testing inclusion in unbounded ranges Caused by 04a92a6764bf678919cf4b68a27496a39d6b886a. 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(+)
Diffstat (limited to 'spec/ruby/command_line')
0 files changed, 0 insertions, 0 deletions