From 4251ba672e6ea846c1dfb052039ba6873e9d5ab0 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 19 Jun 2008 02:49:28 +0000 Subject: * test/ruby/test_enumerator.rb: fix to skip "with_memo" test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_enumerator.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby') diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 8645b7acf..07a54e823 100644 --- a/test/ruby/test_enumerator.rb +++ b/test/ruby/test_enumerator.rb @@ -93,6 +93,7 @@ class TestEnumerator < Test::Unit::TestCase def test_with_memo r = 1..10 + return unless r.each.respond_to? :with_memo assert_equal([55, 3628800], (1..10).each.with_memo([0,1]) {|i, memo| memo[0] += i memo[1] *= i -- cgit