mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_object.rb (test_send_with_block): add a normal case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66f9d5fe11
commit
e98e56e6c4
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Jan 2 15:26:39 2012 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* test/ruby/test_object.rb (test_send_with_block): add a normal case.
|
||||
|
||||
Mon Jan 2 15:18:54 2012 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* test/ruby/test_object.rb (test_send_with_block): moved from
|
||||
|
|
|
@ -438,6 +438,10 @@ class TestObject < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_send_with_block
|
||||
x = :ng
|
||||
1.send(:times) { x = :ok }
|
||||
assert_equal(:ok, x)
|
||||
|
||||
x = :ok
|
||||
o = Object.new
|
||||
def o.inspect
|
||||
|
|
Loading…
Add table
Reference in a new issue