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

* test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throw

now raise ArgumentError exception.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-09-07 18:00:44 +00:00
parent 531eab2cdc
commit d790c7c802
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Sep 8 02:56:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throw
now raise ArgumentError exception.
Sat Sep 8 02:45:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* struct.c (rb_struct_s_members): should raise TypeError instead

View file

@ -110,7 +110,7 @@ class TestFiber < Test::Unit::TestCase
end
def test_throw
assert_raise(NameError){
assert_raise(ArgumentError){
Fiber.new do
throw :a
end.resume