diff options
-rw-r--r-- | enum.c | 2 | ||||
-rw-r--r-- | test/ruby/test_enum.rb | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -713,7 +713,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj) { VALUE ary = rb_ary_new(); - rb_block_call(obj, id_each, argc, argv, collect_all, ary); return ary; } @@ -134,6 +134,11 @@ class TestEnumerable < Test::Unit::TestCase assert_equal([1, 2, 3, 1, 2], @obj.to_a) end def test_to_a_size_symbol sym = Object.new class << sym |