mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8714384d98
commit
bb4f62f234
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ class TestEnumerable < Test::Unit::TestCase
|
|||
|
||||
def test_sort_by
|
||||
assert_equal([3, 2, 2, 1, 1], @obj.sort_by {|x| -x })
|
||||
assert_equal((1..300).to_a.reverse, (1..300).sort_by {|x| -x })
|
||||
end
|
||||
|
||||
def test_all
|
||||
|
|
Loading…
Reference in a new issue