diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 21:01:55 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-10-30 21:01:55 +0000 |
commit | 7d359f9b6955908954e56cab78bf16d9f0e93d24 (patch) | |
tree | c83e311b8815805dea1c89719ed74ebaccc7665d /test/ruby | |
parent | efe869c0e5e53807c4d4a9becffad9f62e73c71d (diff) | |
download | ruby-7d359f9b6955908954e56cab78bf16d9f0e93d24.tar.gz |
revert r65444 and r65446 because of commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_enum.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index c56e280e06..a4eace2d57 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -1115,19 +1115,4 @@ class TestEnumerable < Test::Unit::TestCase assert_equal([1, 2, 3, 4, 5, 10], (1..100).uniq{|x| (x**2) % 10 }.first(6)) assert_equal([1, [1, 2]], Foo.new.to_enum.uniq) end - - def test_transient_heap_sort_by - klass = Class.new do - include Comparable - attr_reader :i - def initialize e - @i = e - end - def <=> other - GC.start - i <=> other.i - end - end - assert_equal [1, 2, 3, 4, 5], (1..5).sort_by{|e| klass.new e} - end end |