From 8bfbb270e4a83b8fd7e7bcc62b1fb502a5a3f8fb Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 25 Dec 2007 09:39:10 +0000 Subject: add tests reported by Yusuke ENDOH. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 8a1ef2341..2a70de026 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -12,3 +12,27 @@ assert_finish 1, %q{ } p r.gets("abab") } + +assert_normal_exit %q{ + begin + raise + rescue + counter = 2 + while true + counter -= 1 + break if counter == 0 + next + retry + end + end +}, 'reported by Yusuke ENDOH' + +assert_normal_exit %q{ + counter = 2 + while true + counter -= 1 + break if counter == 0 + next + "#{ break }" + end +}, 'reported by Yusuke ENDOH' -- cgit