diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-24 12:02:21 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-24 12:02:21 +0000 |
commit | 7160543aeb8a9f5d7b2f26d3c7b0d7702016f831 (patch) | |
tree | f21bae4ea5f45f4a5cfe178ea7fac157a91bf427 /sample/test.rb | |
parent | f0da2e1657e645233faff25faeb05905dd350623 (diff) |
* error.c (exc_equal): == method should not raise Exception.
[ruby-dev:37519]
* sample/test.rb: fix test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/test.rb')
-rw-r--r-- | sample/test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sample/test.rb b/sample/test.rb index 5448a40ba5..21656885f6 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 |