aboutsummaryrefslogtreecommitdiffstats
path: root/bootstraptest/test_syntax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'bootstraptest/test_syntax.rb')
-rw-r--r--bootstraptest/test_syntax.rb40
1 files changed, 37 insertions, 3 deletions
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index 8d87ab990b..ed47d59876 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -689,7 +689,7 @@ assert_equal 'ok', %q{
"#{next}"
end
:ok
-}
+}, 'reported by Yusuke ENDOH'
assert_equal 'ok', %q{
counter = 2
@@ -700,7 +700,7 @@ assert_equal 'ok', %q{
redo
end
:ok
-}
+}, 'reported by Yusuke ENDOH'
assert_equal 'ok', %q{
counter = 2
@@ -711,4 +711,38 @@ assert_equal 'ok', %q{
"#{ redo }"
end
:ok
-}
+}, 'reported by Yusuke ENDOH'
+
+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'
+
+assert_normal_exit %q{
+ counter = 2
+ while true
+ counter -= 1
+ next if counter != 0
+ "#{ break }"
+ end
+}, 'reported by Yusuke ENDOH'
+