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 | 1bc6479a8830f26c821003de1818f4750ab5cc26 (patch) | |
tree | 6d8f1f85d0e04d00a363fc49028a80ca5d4408a4 | |
parent | c3e619c83dcd3223cb6d17d5a1884039b5d0cc4f (diff) | |
download | ruby-1bc6479a8830f26c821003de1818f4750ab5cc26.tar.gz |
* test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | test/ruby/test_enumerator.rb | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Thu Jun 19 11:48:33 2008 Koichi Sasada <ko1@atdot.net> + + * test/ruby/test_enumerator.rb: fix to skip "with_memo" test. + Thu Jun 19 11:40:55 2008 Koichi Sasada <ko1@atdot.net> * vm_insnhelper.c (vm_throw): fix "return" process from "lambda". 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 |