aboutsummaryrefslogtreecommitdiffstats
path: root/KNOWNBUGS.rb
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-01 05:46:27 +0000
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-01 05:46:27 +0000
commite546302486c5b78cf04e845877f17ce8a8afb69f (patch)
treede2f2b8817cb28919df7985f6fa08f65a52941fa /KNOWNBUGS.rb
parent86c382a2d80c1d2a1e5ec6dce800fac79c4bb4e2 (diff)
downloadruby-e546302486c5b78cf04e845877f17ce8a8afb69f.tar.gz
* KNOWNBUGS.rb: add tests. [ruby-dev:45656] [Bug #6460]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'KNOWNBUGS.rb')
-rw-r--r--KNOWNBUGS.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb
index b97a08d928..2bcedcb150 100644
--- a/KNOWNBUGS.rb
+++ b/KNOWNBUGS.rb
@@ -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