Example #1
0
 def test_neg_pow(self):
     self.assertEqual(pow2num(10, -2), 0.01)
Example #2
0
 def test_negnum_pow(self):
     self.assertEqual(pow2num(-3, 3), -26)
Example #3
0
 def test_pow_2pos_num(self):
     self.assertEqual(pow2num(3, 4), 81)