From 2cd70d5ef10501948924fa8a46796d88b49958a8 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 24 Dec 2008 12:02:21 +0000 Subject: * 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 --- sample/test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sample') 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 -- cgit