diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-18 03:47:03 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-18 03:47:03 +0000 |
| commit | 8f8422aec234369de6937d83e46881e7e4c9d0e2 (patch) | |
| tree | 13099b3fad80c5d73c3dca9283222ab554f2177d | |
| parent | fa4dc3643475bd4af981767155287954caf3d16e (diff) | |
| download | ruby-8f8422aec234369de6937d83e46881e7e4c9d0e2.tar.gz ruby-8f8422aec234369de6937d83e46881e7e4c9d0e2.tar.xz ruby-8f8422aec234369de6937d83e46881e7e4c9d0e2.zip | |
add test for [ruby-dev:31472].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | bootstraptest/test_block.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index 2e680b953..d90f5ede8 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -432,4 +432,13 @@ assert_equal 'ok', %q{ :ng end }, '[ruby-dev:31464]' +assert_equal 'ok', %q{ + begin + lambda{|&b|}.call(3) + rescue ArgumentError + :ok + else + :ng + end +}, '[ruby-dev:31472]' |
