* sample/test.rb: rescue exception.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
takano32 2008-12-21 01:44:58 +00:00
parent 7ac32d7a16
commit ee01c3e38b
2 changed files with 6 additions and 2 deletions

View file

@ -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