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

ruby-changes:24207

From: ktsj <ko1@a...>
Date: Sun, 1 Jul 2012 14:46:41 +0900 (JST)
Subject: [ruby-changes:24207] ktsj:r36259 (trunk): * KNOWNBUGS.rb: add tests. [Bug #6460]

ktsj	2012-07-01 14:46:27 +0900 (Sun, 01 Jul 2012)

  New Revision: 36259

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

  Log:
    * KNOWNBUGS.rb: add tests. [ruby-dev:45656] [Bug #6460]

  Modified files:
    trunk/KNOWNBUGS.rb

Index: KNOWNBUGS.rb
===================================================================
--- KNOWNBUGS.rb	(revision 36258)
+++ KNOWNBUGS.rb	(revision 36259)
@@ -3,3 +3,21 @@
 # So all tests will cause failure.
 #
 
+[['[ruby-dev:45656]', %q{
+  class Bug6460
+    include Enumerable
+    def each
+      begin
+        yield :foo
+      ensure
+        1.times { Proc.new }
+      end
+    end
+  end
+  e = Bug6460.new
+}]].each do |bug, src|
+  assert_equal "foo", src + %q{e.detect {true}}, bug
+  assert_equal "true", src + %q{e.any? {true}}, bug
+  assert_equal "false", src + %q{e.all? {false}}, bug
+  assert_equal "true", src + %q{e.include?(:foo)}, bug
+end

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

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