2007-08-28 23:48:19 -04:00
|
|
|
#
|
|
|
|
# This test file concludes tests which point out known bugs.
|
|
|
|
# So all tests will cause failure.
|
|
|
|
#
|
2009-02-14 17:04:21 -05:00
|
|
|
|
2012-07-01 01:46:27 -04:00
|
|
|
[['[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
|