diff options
Diffstat (limited to 'sample')
-rw-r--r-- | sample/test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb index 1898813564..2cf4eea1f4 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -884,6 +884,18 @@ rescue Exception end test_ok($x) +def tt4 &block + tt2(raise(ArgumentError,""),&block) +end +$x = false +begin + tt4{} +rescue ArgumentError + $x = true +rescue Exception +end +test_ok($x) + # iterator break/redo/next/retry done = true loop{ |