зеркало из https://github.com/github/ruby.git
* 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:
Родитель
66f9d5fe11
Коммит
e98e56e6c4
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче