예제 #1
0
 def test8(self):
     self.assertEqual(mySqrt(0), 0)
예제 #2
0
 def test1(self):
     self.assertEqual(mySqrt(9), 3)
예제 #3
0
 def test6(self):
     self.assertEqual(mySqrt(478), 21)
예제 #4
0
 def test7(self):
     self.assertEqual(mySqrt(2147483647), 46340)
예제 #5
0
 def test5(self):
     self.assertEqual(mySqrt(100), 10)
예제 #6
0
 def test4(self):
     self.assertEqual(mySqrt(5), 2)
예제 #7
0
 def test3(self):
     self.assertEqual(mySqrt(3), 1)
예제 #8
0
 def test2(self):
     self.assertEqual(mySqrt(2), 1)
예제 #9
0
 def test0(self):
     self.assertEqual(mySqrt(1), 1)