From 590dc06e3840cc7b00d80ccaac9fbf42573428f8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 8 Jan 2021 19:07:16 +0900 Subject: Get rid of defining methods for tests in core classes Not to interfere in other tests. --- test/-ext-/bignum/test_big2str.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/-ext-/bignum/test_big2str.rb') 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 -- cgit v1.2.3