mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* Add test for Enumerable#sort
with block. Patch by @yui-knk
[fix GH-954] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df11c9c5e2
commit
a894e920aa
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Jul 4 19:39:08 2015 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||
|
||||
* Add test for `Enumerable#sort` with block. Patch by @yui-knk
|
||||
[fix GH-954]
|
||||
|
||||
Sat Jul 4 14:38:43 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* enum.c (zip_ary): remove volatile, use RB_GC_GUARD
|
||||
|
|
|
@ -221,6 +221,7 @@ class TestEnumerable < Test::Unit::TestCase
|
|||
|
||||
def test_sort
|
||||
assert_equal([1, 1, 2, 2, 3], @obj.sort)
|
||||
assert_equal([3, 2, 2, 1, 1], @obj.sort {|x, y| y <=> x })
|
||||
end
|
||||
|
||||
def test_sort_by
|
||||
|
|
Loading…
Reference in a new issue