mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
f7015c968c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16 lines
365 B
Ruby
16 lines
365 B
Ruby
#
|
|
# IMPORTANT: Always keep the first 7 lines (comments),
|
|
# even if this file is otherwise empty.
|
|
#
|
|
# This test file includes tests which point out known bugs.
|
|
# 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
|
|
}, '[Bug #12705]'
|