[Bug #12705]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08cf4cecd5
commit
88d667ee44
@ -5,3 +5,12 @@
|
|||||||
# This test file includes tests which point out known bugs.
|
# This test file includes tests which point out known bugs.
|
||||||
# So all tests will cause failure.
|
# So all tests will cause failure.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
assert_equal "ArgumentError", %{
|
||||||
|
def s(a) yield a; end
|
||||||
|
begin
|
||||||
|
s([1, 2], &lambda { |a,b| [a,b] })
|
||||||
|
rescue ArgumentError => e
|
||||||
|
e.class
|
||||||
|
end
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user