aboutsummaryrefslogtreecommitdiffstats
path: root/test/bigdecimal
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-18 05:34:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-18 05:34:34 +0000
commit9c00c1234d39eef8d42c63aa95353def7ee6a1da (patch)
treefc93f79ec07ffc413b247b756b69454664e7c9df /test/bigdecimal
parentcf2bbc89d26ef29ab33b3a11a71c30ffba35fe2f (diff)
downloadruby-9c00c1234d39eef8d42c63aa95353def7ee6a1da.tar.gz
* ext/bigdecimal/bigdecimal.c (Init_bigdecimal): does not follow
allocation framework right now. [ruby-core:41710] [Bug #5773] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index a9524bb2ae..e855d5617d 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -19,6 +19,10 @@ class TestBigDecimal < Test::Unit::TestCase
[ BigDecimal::ROUND_FLOOR, :floor],
]
+ def assert_allocate
+ assert_raise(TypeError) {BigDecimal.allocate}
+ end
+
def assert_nan(x)
assert(x.nan?, "Expected #{x.inspect} to be NaN")
end