diff options
author | takano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-21 01:44:58 +0000 |
---|---|---|
committer | takano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-21 01:44:58 +0000 |
commit | 2b03eaf800b6f59a8eb62302d839e111fa6cf26a (patch) | |
tree | 8b9b7b6f80181f368c7ba006d4060f82fe23ca1e /sample | |
parent | 67099c5be4fa1e2ac4c7242751a8cb4d8b707a84 (diff) | |
download | ruby-2b03eaf800b6f59a8eb62302d839e111fa6cf26a.tar.gz ruby-2b03eaf800b6f59a8eb62302d839e111fa6cf26a.tar.xz ruby-2b03eaf800b6f59a8eb62302d839e111fa6cf26a.zip |
* sample/test.rb: rescue exception.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r-- | sample/test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb index 34e96204a..5448a40ba 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -660,8 +660,8 @@ begin raise $string end test_ok(false) -rescue - test_ok(true) if $! == $string +rescue => e + test_ok(true) if $! == e end # exception in ensure clause |