diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-01 03:00:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-01 03:00:48 +0000 |
commit | a918afe05e2f3534e262d16827f94463e021f096 (patch) | |
tree | b234d78b205a466bfbdb54710e77b66f4d4d5ea6 /test/ruby/test_fiber.rb | |
parent | dd9f8e5ac9fc99da0fccf0eac80ebce8ea81e3ff (diff) | |
download | ruby-a918afe05e2f3534e262d16827f94463e021f096.tar.gz |
* cont.c (rb_fiber_start): calls with exact argument number.
[ruby-core:20088]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r-- | test/ruby/test_fiber.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index fc9a49919a..bf56b2b6d2 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -14,6 +14,10 @@ class TestFiber < Test::Unit::TestCase assert_equal([:a, :b], Fiber.new{|a, b| [a, b]}.resume(:a, :b)) end + def test_argument + assert_equal(4, Fiber.new {|i=4| i}.resume) + end + def test_term assert_equal(:ok, Fiber.new{:ok}.resume) assert_equal([:a, :b, :c, :d, :e], |