aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-/bignum/test_mul.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/bignum/test_mul.rb')
-rw-r--r--test/-ext-/bignum/test_mul.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/-ext-/bignum/test_mul.rb b/test/-ext-/bignum/test_mul.rb
index 103a00fbad..fa974ab55d 100644
--- a/test/-ext-/bignum/test_mul.rb
+++ b/test/-ext-/bignum/test_mul.rb
@@ -5,8 +5,8 @@ require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class TestMul < Test::Unit::TestCase
- SIZEOF_BDIGIT = Bignum::SIZEOF_BDIGIT
- BITSPERDIG = Bignum::BITSPERDIG
+ SIZEOF_BDIGIT = Integer::SIZEOF_BDIGIT
+ BITSPERDIG = Integer::BITSPERDIG
BDIGMAX = (1 << BITSPERDIG) - 1
def test_mul_normal
@@ -61,14 +61,14 @@ class TestBignum < Test::Unit::TestCase
end
def test_mul_balance_2x16
- x = (1 << Bignum::BITSPERDIG) | 1
- y = (1 << Bignum::BITSPERDIG*16) | 1
+ x = (1 << Integer::BITSPERDIG) | 1
+ y = (1 << Integer::BITSPERDIG*16) | 1
assert_equal(x.big_mul_normal(y), x.big_mul_balance(y))
end
def test_mul_balance_2x17
- x = (1 << Bignum::BITSPERDIG) | 1
- y = (1 << Bignum::BITSPERDIG*17) | 1
+ x = (1 << Integer::BITSPERDIG) | 1
+ y = (1 << Integer::BITSPERDIG*17) | 1
assert_equal(x.big_mul_normal(y), x.big_mul_balance(y))
end