diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 09:39:10 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 09:39:10 +0000 |
| commit | 8bfbb270e4a83b8fd7e7bcc62b1fb502a5a3f8fb (patch) | |
| tree | f1e02a5a670899580544b3219acac805e0bca914 | |
| parent | be171182259f62743d916fdf439d1fd87ccfc2c0 (diff) | |
| download | ruby-8bfbb270e4a83b8fd7e7bcc62b1fb502a5a3f8fb.tar.gz ruby-8bfbb270e4a83b8fd7e7bcc62b1fb502a5a3f8fb.tar.xz ruby-8bfbb270e4a83b8fd7e7bcc62b1fb502a5a3f8fb.zip | |
add tests reported by Yusuke ENDOH.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | bootstraptest/test_knownbug.rb | 24 |
1 files changed, 24 insertions, 0 deletions
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' |
