diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-01 03:42:58 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-01 03:42:58 +0000 |
commit | adad6e030038587bd8c5bd9240f9e20215865be8 (patch) | |
tree | c5bcbebfdcf78e64c8ee51514a2c23ed86cab6b7 /bootstraptest | |
parent | 88d9f7aeac3b438561bfaedeb0d2b9173160dfda (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')
-rw-r--r-- | bootstraptest/test_knownbug.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index c23aade793..e021f0b4bd 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]' |