示例#1
0
 def test_mySqrt_0(self):
     solution = Solution()
     self.assertEqual(0, solution.mySqrt(0))
示例#2
0
 def test_mySqrt_16(self):
     solution = Solution()
     self.assertEqual(4, solution.mySqrt(16))
示例#3
0
 def test_mySqrt_8(self):
     solution = Solution()
     self.assertEqual(2, solution.mySqrt(8))
示例#4
0
 def test_mySqrt_9(self):
     solution = Solution()
     self.assertEqual(3, solution.mySqrt(9))
示例#5
0
 def test_mySqrt_3(self):
     solution = Solution()
     self.assertEqual(1, solution.mySqrt(3))