Exemplo n.º 1
0
 def test_square_root_of_zero_is_zero(self):
     self.assertEqual(NumberUtils().find_square_root(0), 0)
Exemplo n.º 2
0
 def test_square_root_of_large_imperfect_squre(self):
     self.assertEqual(NumberUtils().find_square_root(1525224), 1234)
Exemplo n.º 3
0
 def test_square_root_of_medium_imperfect_squre(self):
     self.assertEqual(NumberUtils().find_square_root(8), 2)
Exemplo n.º 4
0
 def test_square_root_of_small_imperfect_squre(self):
     self.assertEqual(NumberUtils().find_square_root(251000), 500)
Exemplo n.º 5
0
 def test_square_root_of_medium_perfect_square(self):
     self.assertEqual(NumberUtils().find_square_root(250000), 500)