diff options
Diffstat (limited to 'test/-ext-/bignum/test_str2big.rb')
-rw-r--r-- | test/-ext-/bignum/test_str2big.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/-ext-/bignum/test_str2big.rb b/test/-ext-/bignum/test_str2big.rb index ac55c78082..f77641b350 100644 --- a/test/-ext-/bignum/test_str2big.rb +++ b/test/-ext-/bignum/test_str2big.rb @@ -26,5 +26,12 @@ class TestBignum < Test::Unit::TestCase assert_equal(n, s.str2big_karatsuba(10, true)) end + def test_str2big_gmp + s = "1" + "0" * 1000 + n = 10 ** 1000 + assert_equal(n, s.str2big_gmp(10, true)) + rescue NotImplementedError + end + end end |