mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
e546302486
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
23 lines
535 B
Ruby
23 lines
535 B
Ruby
#
|
|
# This test file concludes tests which point out known bugs.
|
|
# 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
|