summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-06 01:56:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-06 01:56:49 +0000
commit02657c374c5bb7440890d904d1a3f9e5bbd89d53 (patch)
tree8e67b52bb412265105eae7e77cb91c176e058d24
parent1d04ac82be9602ccdf7803e37b7d9b5927411043 (diff)
downloadruby-02657c374c5bb7440890d904d1a3f9e5bbd89d53.tar.gz
ruby-02657c374c5bb7440890d904d1a3f9e5bbd89d53.tar.xz
ruby-02657c374c5bb7440890d904d1a3f9e5bbd89d53.zip
* test/ruby/test_continuation.rb: add a test for last commit.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_continuation.rb7
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5dc1c4578..9270ed657 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 6 10:57:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_continuation.rb: add a test for last commit.
+
Wed Jun 6 10:55:42 2007 Koichi Sasada <ko1@atdot.net>
* 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 8af13363d..729da88e6 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