コード例 #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))