diff options
Diffstat (limited to 'test/-ext-/bignum/test_big2str.rb')
-rw-r--r-- | test/-ext-/bignum/test_big2str.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/-ext-/bignum/test_big2str.rb b/test/-ext-/bignum/test_big2str.rb index cc28d97ce5..f8d6320338 100644 --- a/test/-ext-/bignum/test_big2str.rb +++ b/test/-ext-/bignum/test_big2str.rb @@ -5,24 +5,24 @@ require "-test-/bignum" class Test_Bignum < Test::Unit::TestCase class TestBig2str < Test::Unit::TestCase - SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT - BITSPERDIG = Integer::BITSPERDIG + SIZEOF_BDIGIT = Bug::Bignum::SIZEOF_BDIGIT + BITSPERDIG = Bug::Bignum::BITSPERDIG BDIGMAX = (1 << BITSPERDIG) - 1 def test_big2str_generic x = 10**1000 - assert_equal("1" + "0" * 1000, x.big2str_generic(10)) + assert_equal("1" + "0" * 1000, Bug::Bignum.big2str_generic(x, 10)) end def test_big2str_poweroftwo e = BITSPERDIG*2 x = 0b10**e - assert_equal("1" + "0" * e, x.big2str_poweroftwo(2)) + assert_equal("1" + "0" * e, Bug::Bignum.big2str_poweroftwo(x, 2)) end def test_big2str_gmp x = 10**1000 - assert_equal("1" + "0" * 1000, x.big2str_gmp(10)) + assert_equal("1" + "0" * 1000, Bug::Bignum.big2str_gmp(x, 10)) rescue NotImplementedError end |