Exemplo n.º 1
0
 def test_sum_of_digits_of_10_should_be_1(self):
     self.assertEqual(sum_of_digits(10), 1)
Exemplo n.º 2
0
 def test_sum_of_digits_of_2_pow_1000(self):
     self.assertEqual(sum_of_digits(2 ** 1000), 1366)
Exemplo n.º 3
0
 def test_sum_of_digits_of_2(self):
     self.assertEqual(sum_of_digits(2), 2)
Exemplo n.º 4
0
 def test_sum_of_digits_of_2_pow_15(self):
     self.assertEqual(sum_of_digits(2 ** 15), 26)