summaryrefslogtreecommitdiff
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
commit977d66ec993b0f1892fb3e4cd8ac1c41716daf85 (patch)
tree90e36b2fb912f657c8b94278961b938c805c6dd8 /test/ruby/test_fiber.rb
parentcfaf3d9a1aee75a51f63bda5ff447da2bfc4234f (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 bd39ba5af4..a8bce8a06d 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
}