diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-01 01:52:15 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-01 01:52:15 +0000 |
commit | bb4f62f234e83487b5c5545ffe8ad42354ca5d3c (patch) | |
tree | 4806f8346ff754ef465fb87c63f09a705498391d /test/ruby | |
parent | 8714384d98a3f110650849bf377e086a78c24686 (diff) | |
download | ruby-bb4f62f234e83487b5c5545ffe8ad42354ca5d3c.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_enum.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index c500cee4c3..d5353f680c 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -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 |