def test_cal_pow_0_n5_get_error(self): result = calrand.pow(0, -5) expected = 'math error' self.assertEqual(expected, result)
def test_cal_pow_n5_2_get_25(self): result = calrand.pow(-5, 2) expected = 25 self.assertEqual(expected, result)
def test_cal_pow_n5_n2_get_0p04(self): result = calrand.pow(-5, -2) expected = 0.04 self.assertEqual(expected, result)
def test_cal_pow_0_0_get_1(self): result = calrand.pow(0, 0) expected = 1 self.assertEqual(expected, result)