def test2(self): expect = 0.25000 actual = Solution.myPow("", 2.00000, -2) self.assertEqual(expect, actual)
def test0(self): expect = 1024.00000 actual = Solution.myPow("", 2.00000, 10) self.assertEqual(expect, actual)
def test1(self): expect = 9.26100 # expect = 9.261000000000001 actual = Solution.myPow("", 2.10000, 3) self.assertEqual(expect, actual)