summaryrefslogtreecommitdiff
path: root/test/-ext-/bignum/test_big2str.rb
diff options
context:
space:
mode:
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 3e45232d6c..f03d2328a1 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