[前][次][番号順一覧][スレッド一覧]

ruby-changes:5914

From: ko1 <ko1@a...>
Date: Thu, 19 Jun 2008 11:49:46 +0900 (JST)
Subject: [ruby-changes:5914] Ruby:r17422 (trunk): * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.

ko1	2008-06-19 11:49:28 +0900 (Thu, 19 Jun 2008)

  New Revision: 17422

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_enumerator.rb

  Log:
    * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=17422&r2=17421&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_enumerator.rb?r1=17422&r2=17421&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 17421)
+++ ChangeLog	(revision 17422)
@@ -1,3 +1,7 @@
+Thu Jun 19 11:48:33 2008  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
+
 Thu Jun 19 11:40:55 2008  Koichi Sasada  <ko1@a...>
 
 	* vm_insnhelper.c (vm_throw): fix "return" process from "lambda".
Index: test/ruby/test_enumerator.rb
===================================================================
--- test/ruby/test_enumerator.rb	(revision 17421)
+++ test/ruby/test_enumerator.rb	(revision 17422)
@@ -93,6 +93,7 @@
 
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]