summaryrefslogtreecommitdiff
path: root/bootstraptest/test_knownbug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-01 03:42:58 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-01 03:42:58 +0000
commitadad6e030038587bd8c5bd9240f9e20215865be8 (patch)
treec5bcbebfdcf78e64c8ee51514a2c23ed86cab6b7 /bootstraptest/test_knownbug.rb
parent88d9f7aeac3b438561bfaedeb0d2b9173160dfda (diff)
bootstraptest/test_knownbug.rb: add test
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_knownbug.rb')
-rw-r--r--bootstraptest/test_knownbug.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index c23aade..e021f0b 100644
--- a/bootstraptest/test_knownbug.rb
+++ b/bootstraptest/test_knownbug.rb
@@ -50,3 +50,13 @@ assert_normal_exit %q{
assert_normal_exit %q{
"".center(1, "\x80".force_encoding("utf-8"))
}, '[ruby-dev:33807]'
+
+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]'