diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 02:49:28 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-19 02:49:28 +0000 |
| commit | 4251ba672e6ea846c1dfb052039ba6873e9d5ab0 (patch) | |
| tree | 6d8f1f85d0e04d00a363fc49028a80ca5d4408a4 /test/ruby | |
| parent | 92fe5b66348ab6071b5cd8cdb10ba15c513485df (diff) | |
| download | ruby-4251ba672e6ea846c1dfb052039ba6873e9d5ab0.tar.gz ruby-4251ba672e6ea846c1dfb052039ba6873e9d5ab0.tar.xz ruby-4251ba672e6ea846c1dfb052039ba6873e9d5ab0.zip | |
* 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
Diffstat (limited to 'test/ruby')
| -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 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 |
