diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 02:26:45 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 02:26:45 +0000 |
| commit | bf76445be2163c32fb57c1a152d5d066f6f787cd (patch) | |
| tree | e0fb799a66e02e61efd9e384a4b61aba16d210bc /bootstraptest | |
| parent | 378d7047b8e49d2e11f050527ea31c070f42d61d (diff) | |
| download | ruby-bf76445be2163c32fb57c1a152d5d066f6f787cd.tar.gz ruby-bf76445be2163c32fb57c1a152d5d066f6f787cd.tar.xz ruby-bf76445be2163c32fb57c1a152d5d066f6f787cd.zip | |
* string.c (sym_call): use exact argument array interface.
[ruby-core:14279]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
| -rw-r--r-- | bootstraptest/test_block.rb | 10 | ||||
| -rw-r--r-- | bootstraptest/test_knownbug.rb | 7 |
2 files changed, 10 insertions, 7 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index f139c21d1..3ece21756 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -497,3 +497,13 @@ assert_equal 'ok', %q{ result end } + +assert_equal "ok", %q{ + class Bar + def bar; :ok; end + end + def foo + yield(Bar.new) if block_given? + end + foo(&:bar) +}, '[ruby-core:14279]' diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 74981190d..b251734ca 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -3,13 +3,6 @@ # So all tests will cause failure. # -assert_normal_exit %q{ - def foo(&block) - yield if block - end - foo(&:bar) -}, '[ruby-core:14279]' - assert_equal 'ok', %q{ open("tmp", "w") {|f| f.write "a\u00FFb" } s = open("tmp", "r:iso-8859-1:utf-8") {|f| |
