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:
parent
531eab2cdc
commit
d790c7c802
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue