From 9c0b2b8b65dc27d27bcd2d417a116e7a343399a2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 6 Jun 2007 01:56:49 +0000 Subject: [PATCH] * test/ruby/test_continuation.rb: add a test for last commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_continuation.rb | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5dc1c4578f..9270ed6574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 6 10:57:45 2007 Koichi Sasada + + * test/ruby/test_continuation.rb: add a test for last commit. + Wed Jun 6 10:55:42 2007 Koichi Sasada * cont.c (rb_cont_call): forbid calling dead fiber with diff --git a/test/ruby/test_continuation.rb b/test/ruby/test_continuation.rb index 8af13363dc..729da88e60 100644 --- a/test/ruby/test_continuation.rb +++ b/test/ruby/test_continuation.rb @@ -40,6 +40,13 @@ class TestContinuation < Test::Unit::TestCase assert_raise(LocalJumpError){ callcc } + assert_raise(RuntimeError){ + c = nil + Fiber.new do + callcc {|c2| c = c2 } + end.yield + c.call + } end end