summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-17 12:35:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-17 12:35:56 +0000
commit1de10a2395e739395e0bd6141c38e797053bd2f3 (patch)
treeff63bb117e63f4d7883b090b60ce3b8e4f1ac0e5 /test
parent97348a2dad5af9eb914767731ad708e7d84b56d3 (diff)
* test/ruby/test_iterator.rb (test_block_passing): more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_iterator.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ruby/test_iterator.rb b/test/ruby/test_iterator.rb
index 738e974461..cdcbe1013b 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