From d790c7c802b9e571e147b6c75cbe78405f040d0f Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 7 Sep 2007 18:00:44 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ test/ruby/test_fiber.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 530de64c7d..1ec8ac75ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Sep 8 02:56:31 2007 Yukihiro Matsumoto + + * test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throw + now raise ArgumentError exception. + Sat Sep 8 02:45:33 2007 Yukihiro Matsumoto * struct.c (rb_struct_s_members): should raise TypeError instead diff --git a/test/ruby/test_fiber.rb b/test/ruby/test_fiber.rb index d19daede3a..2756e6b219 100644 --- a/test/ruby/test_fiber.rb +++ b/test/ruby/test_fiber.rb @@ -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