Skip to content

Commit

Permalink
bootstraptest/test_knownbug.rb: add test
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Mar 1, 2008
1 parent ec2123e commit 79a4eed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bootstraptest/test_knownbug.rb
Expand Up @@ -50,3 +50,13 @@ class X < RuntimeError;end
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]'

0 comments on commit 79a4eed

Please sign in to comment.