def test_long_pow_with_float_power(self): result = lim.long_int_pow(LONG_BIG, 2.5) self.assertAlmostEqual(result, 10 ** 2500, delta=10 ** 2490)
def test_long_int_pow_makes_zero(self): result = lim.long_int_pow(LONG_BIG, -1) self.assertEqual(result, 0)
def test_long_pow_makes_between_one_and_zero(self): result = lim.long_int_pow(FLOAT_SMALL, -2) self.assertAlmostEqual(result, 1e-200, delta=10 ** -210)
def test_long_int_pow_makes_one(self): result = lim.long_int_pow(LONG_BIG, 0) self.assertEqual(result, 1)