diff options
Diffstat (limited to 'bootstraptest/test_proc.rb')
-rw-r--r-- | bootstraptest/test_proc.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb index ab309fe534..51c69448c8 100644 --- a/bootstraptest/test_proc.rb +++ b/bootstraptest/test_proc.rb @@ -259,3 +259,20 @@ assert_equal %Q{ok\n}, %q{ GC.start block.call }, '[ruby-core:14885]' + +assert_equal 'ok', %q{ + a = lambda {|x, y, &b| b } + b = a.curry[1] + if b.call(2){} == nil + :ng + else + :ok + end +}, '[ruby-core:15551]' + +assert_equal 'ok', %q{ + lambda { + break :ok + :ng + }.call +}, '[ruby-dev:34646]' |