summaryrefslogtreecommitdiff
path: root/test/-ext-/bignum/test_big2str.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 11:20:17 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-03 11:20:17 +0000
commitc0e1f9e016a24300a7047bb7e7cb3dd1f283463e (patch)
tree20301cc31dd036f219314887c64f6200d0e39199 /test/-ext-/bignum/test_big2str.rb
parent25836893406be62419cb65c07497b03a756c22a6 (diff)
Add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-/bignum/test_big2str.rb')
-rw-r--r--test/-ext-/bignum/test_big2str.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/-ext-/bignum/test_big2str.rb b/test/-ext-/bignum/test_big2str.rb
index 3e45232..f03d232 100644
--- a/test/-ext-/bignum/test_big2str.rb
+++ b/test/-ext-/bignum/test_big2str.rb
@@ -19,5 +19,11 @@ class TestBignum < Test::Unit::TestCase
assert_equal("1" + "0" * e, x.big2str_poweroftwo(2))
end
+ def test_big2str_gmp
+ x = 10**1000
+ assert_equal("1" + "0" * 1000, x.big2str_gmp(10))
+ rescue NotImplementedError
+ end
+
end
end