1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
ko1 2007-06-06 01:56:49 +00:00
parent 15b31b0d80
commit 9c0b2b8b65
2 changed files with 11 additions and 0 deletions

View file

@ -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> Wed Jun 6 10:55:42 2007 Koichi Sasada <ko1@atdot.net>
* cont.c (rb_cont_call): forbid calling dead fiber with * cont.c (rb_cont_call): forbid calling dead fiber with

View file

@ -40,6 +40,13 @@ class TestContinuation < Test::Unit::TestCase
assert_raise(LocalJumpError){ assert_raise(LocalJumpError){
callcc callcc
} }
assert_raise(RuntimeError){
c = nil
Fiber.new do
callcc {|c2| c = c2 }
end.yield
c.call
}
end end
end end