diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-17 12:35:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-08-17 12:35:56 +0000 |
commit | e60449249f04fc2f8dcef10543ebf6a71c45d707 (patch) | |
tree | 6496b842c06f8babb4e9feb62d82743c2ae53533 /test/ruby | |
parent | 4fc0955e4a4d370297b3af422f409621a6436e9e (diff) |
* test/ruby/test_iterator.rb (test_block_passing): more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_iterator.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb index 5c2ef183aa..638916309e 100644 --- a/test/ruby/test_iterator.rb +++ b/test/ruby/test_iterator.rb @@ -193,7 +193,13 @@ class TestIterator < Test::Unit::TestCase m(yield(var), &block) end + def m4(&block) + m(m1(), &block) + end + def test_block_passing + assert(!m4()) + assert(!m4 {}) assert_equal(100, m3(10) {|x|x*x}) end |