summaryrefslogtreecommitdiffstats
path: root/test/ruby
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 /test/ruby
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
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_continuation.rb7
1 files changed, 7 insertions, 0 deletions
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