diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-05 04:01:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-05 04:01:08 +0000 |
commit | 43fa1c6bb7fe3d30f5d5a00ba95988c443e92ce9 (patch) | |
tree | 2ef3b5d1915b62bf2c7aa5aed03e7e353a9f20e2 /bootstraptest | |
parent | a545955b1753b1cfe5d9fa4e66fdbf7bdc630487 (diff) | |
download | ruby-43fa1c6bb7fe3d30f5d5a00ba95988c443e92ce9.tar.gz ruby-43fa1c6bb7fe3d30f5d5a00ba95988c443e92ce9.tar.xz ruby-43fa1c6bb7fe3d30f5d5a00ba95988c443e92ce9.zip |
* bootstraptest/test_exception.rb: test for [ruby-core:24767].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_exception.rb | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/bootstraptest/test_exception.rb b/bootstraptest/test_exception.rb index bd3d02ade..33154a546 100644 --- a/bootstraptest/test_exception.rb +++ b/bootstraptest/test_exception.rb @@ -370,7 +370,7 @@ assert_equal %q{}, %q{ } ## -assert_match /undefined method `foo\'/, %q{ +assert_match /undefined method `foo\'/, %q{#` STDERR.reopen(STDOUT) class C def inspect @@ -402,3 +402,15 @@ assert_equal 'nil', %q{ exc.inspect }, '[ruby-dev:32608]' +assert_equal 'exception class/object expected', %q{ + class ZeroDivisionError + def self.new(message) + 42 + end + end + begin + 1/0 + rescue Exception => e + e.message + end +}, '[ruby-core:24767]' |