aboutsummaryrefslogtreecommitdiffstats
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.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb
index c99e302b19..6c67a5815d 100644
--- a/test/ruby/test_fiber.rb
+++ b/test/ruby/test_fiber.rb
@@ -116,7 +116,15 @@ class TestFiber < Test::Unit::TestCase
f2 = Fiber.new do
c.call
end
- assert_equal(f1.yield, :ok)
+ assert_equal(:ok, f1.yield)
+
+ assert_equal(:ok,
+ callcc {|c|
+ Fiber.new {
+ c.call :ok
+ }.yield
+ }
+ )
end
end