ruby-changes:3196
From: ko1@a...
Date: 25 Dec 2007 18:39:22 +0900
Subject: [ruby-changes:3196] akr - Ruby:r14689 (trunk): add tests reported by Yusuke ENDOH.
akr 2007-12-25 18:39:10 +0900 (Tue, 25 Dec 2007) New Revision: 14689 Modified files: trunk/bootstraptest/test_knownbug.rb Log: add tests reported by Yusuke ENDOH. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/bootstraptest/test_knownbug.rb?r1=14689&r2=14688 Index: bootstraptest/test_knownbug.rb =================================================================== --- bootstraptest/test_knownbug.rb (revision 14688) +++ bootstraptest/test_knownbug.rb (revision 14689) @@ -12,3 +12,27 @@ } 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' -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml