aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_range.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-13 16:30:07 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-13 16:30:07 +0000
commit450307e38315f81c10d959054c49d8baed522027 (patch)
tree55c15b446552b3bfcd27af72a67c236bf0a43cfd /test/ruby/test_range.rb
parent63fa57e9ba6c25718843c8b223968bea7adc21d4 (diff)
downloadruby-450307e38315f81c10d959054c49d8baed522027.tar.gz
* enum.c (nmin_run): max(n) and max_by(n) returns an array in
descending order. [ruby-core:65452] Suggested by David Grayson. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_range.rb')
-rw-r--r--test/ruby/test_range.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index 1031201923..e3880bff93 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -81,8 +81,8 @@ class TestRange < Test::Unit::TestCase
assert_equal(0, (0..0).max)
assert_equal(nil, (0...0).max)
- assert_equal([8,9,10], (0..10).max(3))
- assert_equal([7,8,9], (0...10).max(3))
+ assert_equal([10,9,8], (0..10).max(3))
+ assert_equal([9,8,7], (0...10).max(3))
end
def test_initialize_twice