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

ruby-changes:13778

From: nobu <ko1@a...>
Date: Fri, 30 Oct 2009 17:06:30 +0900 (JST)
Subject: [ruby-changes:13778] Ruby:r25575 (trunk): * test/ruby/test_enum.rb (test_count): marked as an implementation

nobu	2009-10-30 17:05:31 +0900 (Fri, 30 Oct 2009)

  New Revision: 25575

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25575

  Log:
    * test/ruby/test_enum.rb (test_count): marked as an implementation
      specific test.

  Modified files:
    trunk/test/ruby/test_enum.rb

Index: test/ruby/test_enum.rb
===================================================================
--- test/ruby/test_enum.rb	(revision 25574)
+++ test/ruby/test_enum.rb	(revision 25575)
@@ -36,14 +36,16 @@
     assert_equal(2, @obj.count(1) {|x| x % 2 == 1 })
     assert_raise(ArgumentError) { @obj.count(0, 1) }
 
-    en = Class.new {
-      include Enumerable
-      alias :size :count
-      def each
-        yield 1
-      end
-    }
-    assert_equal(1, en.new.count, '[ruby-core:24794]')
+    if RUBY_ENGINE == "ruby"
+      en = Class.new {
+        include Enumerable
+        alias :size :count
+        def each
+          yield 1
+        end
+      }
+      assert_equal(1, en.new.count, '[ruby-core:24794]')
+    end
   end
 
   def test_find

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

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