diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_enumerator.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_enumerator.rb b/test/ruby/test_enumerator.rb index 8645b7acf7..07a54e8233 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 |