summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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 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