aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-')
-rw-r--r--test/-ext-/bignum/test_big2str.rb4
-rw-r--r--test/-ext-/bignum/test_div.rb4
-rw-r--r--test/-ext-/bignum/test_mul.rb12
-rw-r--r--test/-ext-/bignum/test_str2big.rb4
4 files changed, 12 insertions, 12 deletions
diff --git a/test/-ext-/bignum/test_big2str.rb b/test/-ext-/bignum/test_big2str.rb
index 4fae24eb34..296a5a9c49 100644
--- a/test/-ext-/bignum/test_big2str.rb
+++ b/test/-ext-/bignum/test_big2str.rb
@@ -5,8 +5,8 @@ require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class TestBig2str < 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_big2str_generic
diff --git a/test/-ext-/bignum/test_div.rb b/test/-ext-/bignum/test_div.rb
index 9a8e93b081..c53332630a 100644
--- a/test/-ext-/bignum/test_div.rb
+++ b/test/-ext-/bignum/test_div.rb
@@ -5,8 +5,8 @@ require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class TestDiv < 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_divrem_normal
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
diff --git a/test/-ext-/bignum/test_str2big.rb b/test/-ext-/bignum/test_str2big.rb
index 3b5750154e..c14811d9c4 100644
--- a/test/-ext-/bignum/test_str2big.rb
+++ b/test/-ext-/bignum/test_str2big.rb
@@ -5,8 +5,8 @@ require "-test-/bignum"
class TestBignum < Test::Unit::TestCase
class TestStr2big < 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_str2big_poweroftwo