Пример #1
0
 def test_find_sum(self):
     # It works without an argument
     self.assertEqual(find_sum(), 4613732)
     # It works with an argument
     self.assertEqual(find_sum(35), 44)
Пример #2
0
def main():
    print('Functionally - ' + str(find_sum()))
    print('Objectively  - ' + str(FibonacciSequence().even_sum()))
Пример #3
0
 def test_find_sum(self):
     # It works without an argument
     self.assertEqual(find_sum(), 4613732)
     # It works with an argument
     self.assertEqual(find_sum(35), 44)