summaryrefslogtreecommitdiff
path: root/test/ruby/test_fiber.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r--test/ruby/test_fiber.rb4
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],