summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_fiber.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 02:03:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 02:03:44 +0000
commit4092e43f49604ecf32c4e86c2d9e6a879faf81e9 (patch)
tree90e36b2fb912f657c8b94278961b938c805c6dd8 /test/ruby/test_fiber.rb
parent2135f038c6f4661bd8cfb862f77bbf022b45e2d3 (diff)
downloadruby-4092e43f49604ecf32c4e86c2d9e6a879faf81e9.tar.gz
ruby-4092e43f49604ecf32c4e86c2d9e6a879faf81e9.tar.xz
ruby-4092e43f49604ecf32c4e86c2d9e6a879faf81e9.zip
* cont.c: separate Continuation and Fiber from core.
* ext/continuation/*, ext/fiber/*: ditto. * include/ruby/ruby.h: remove rb_cFiber. * include/ruby/intern.h: add the rb_fiber_new() declaration. * enumerator.c (next_init): fix to use rb_fiber_new(). * test/ruby/test_enumerator.rb: remove next? tests. * test/ruby/test_continuation.rb: add a require 'continuation'. * test/ruby/test_fiber.rb: add a require 'fiber'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fiber.rb')
-rw-r--r--test/ruby/test_fiber.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index bd39ba5af..a8bce8a06 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -1,4 +1,5 @@
require 'test/unit'
+require 'fiber'
class TestFiber < Test::Unit::TestCase
def test_normal
@@ -118,11 +119,11 @@ class TestFiber < Test::Unit::TestCase
def test_transfer
ary = []
f2 = nil
- f1 = Fiber::Core.new{
+ f1 = Fiber.new{
ary << f2.transfer(:foo)
:ok
}
- f2 = Fiber::Core.new{
+ f2 = Fiber.new{
ary << f1.transfer(:baz)
:ng
}