diff options
author | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-17 18:27:36 +0000 |
---|---|---|
committer | wyhaines <wyhaines@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-17 18:27:36 +0000 |
commit | 6f1649e091dfc2c58d29e524f31d0295e885da84 (patch) | |
tree | 46f5e2be95973842c2e9ffa19fb682e991940ae8 /test/ruby | |
parent | 2176130373f03ad76c814dd652044f23f9158a69 (diff) |
ext/bigdecimal/bigdecimal.c: Backport #2349 [ruby-core:26646]; fix comparisons. Also fix a bunch of bugs that lead to broken-ness and failing tests.
test/bigdecimal/test_bigdecimal.rb: Backport #2349 [ruby-core:26646]; added a test suite.
test/ruby/test_exception.rb: The test suite was breaking ZeroDivisionError, which in turn would break bigdecimal/test_bigdecimal.rb. Made a simple fix that keeps that test but does so non-destructively.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@29025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index b31053f03e..c482f571ee 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1,6 +1,6 @@ require 'test/unit' -class ZeroDivisionError +class JunkError < ZeroDivisionError def self.new(message) 42 end @@ -27,7 +27,7 @@ class TestException < Test::Unit::TestCase end assert(true) - e = assert_raise(TypeError) { 1/0 } + e = assert_raise(TypeError) { raise JunkError.new("abc") } assert_equal('exception class/object expected', e.message) # exception in rescue clause |