summaryrefslogtreecommitdiffstats
path: root/sample/test.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 12:02:21 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 12:02:21 +0000
commit2cd70d5ef10501948924fa8a46796d88b49958a8 (patch)
treef21bae4ea5f45f4a5cfe178ea7fac157a91bf427 /sample/test.rb
parent0b844c130a2ddbf64d27cfcf3ff4681038ed8847 (diff)
downloadruby-2cd70d5ef10501948924fa8a46796d88b49958a8.tar.gz
ruby-2cd70d5ef10501948924fa8a46796d88b49958a8.tar.xz
ruby-2cd70d5ef10501948924fa8a46796d88b49958a8.zip
* error.c (exc_equal): == method should not raise Exception.
[ruby-dev:37519] * sample/test.rb: fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r--sample/test.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb
index 5448a40ba..21656885f 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -661,9 +661,11 @@ begin
end
test_ok(false)
rescue => e
- test_ok(true) if $! == e
+ test_ok($! == e)
+ test_ok(e.message == $string)
+ test_ok(e != $string)
end
-
+
# exception in ensure clause
begin
begin