diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 10:14:18 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-20 10:14:18 +0000 |
| commit | 369284d33c84e4325e46e745ccda0ec22265ff2f (patch) | |
| tree | ad7d21dc7aeb7c725ce5de1cea332f172803483e /test | |
| parent | d351ce9b2519438813f00039ebe614cb6c2f90c0 (diff) | |
* reverts r21693.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_array.rb | 5 | ||||
| -rw-r--r-- | test/ruby/test_enum.rb | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 04ed13892..9edd31dfa 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1502,11 +1502,6 @@ class TestArray < Test::Unit::TestCase a = [] [1, 2, 3].zip([:a, :b], ["a", "b", "c", "d"]) {|x| a << x } assert_equal([[1, :a, "a"], [2, :b, "b"], [3, nil, "c"]], a) - - ary = Object.new - def ary.to_a; [1, 2]; end - def ary.to_ary; [3, 4]; end - assert_equal([[5, 3], [6, 4]], [5, 6].zip(ary)) end def test_transpose diff --git a/test/ruby/test_enum.rb b/test/ruby/test_enum.rb index 973b7cb42..ed82d7787 100644 --- a/test/ruby/test_enum.rb +++ b/test/ruby/test_enum.rb @@ -211,11 +211,6 @@ class TestEnumerable < Test::Unit::TestCase a = [] @obj.zip([:a, :b, :c]) {|x,y| a << [x, y] } assert_equal([[1,:a],[2,:b],[3,:c],[1,nil],[2,nil]], a) - - ary = Object.new - def ary.to_a; [1, 2]; end - def ary.to_ary; [3, 4]; end - assert_equal([[1, 3], [2, 4], [3, nil], [1, nil], [2, nil]], @obj.zip(ary)) end def test_take |
