mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@18078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
19 lines
339 B
Ruby
19 lines
339 B
Ruby
#
|
|
# This is a list of known bugs.
|
|
#
|
|
|
|
require 'test/unit'
|
|
|
|
class TC_KnownBugs < Test::Unit::TestCase
|
|
def just_yield()
|
|
yield
|
|
end
|
|
|
|
def test_block_arg1
|
|
# &b wrongly captures the upper block such as the one given to
|
|
# this method, if no block is given on yield.
|
|
just_yield {|&b|
|
|
assert_equal(nil, b)
|
|
}
|
|
end
|
|
end
|