Contents:
Beginner Series #3 Sum of Numbers
kyu_7.beginner_series_sum_of_numbers.sum_of_numbers.
get_sum
Given two integers a and b, which can be positive or negative, find the sum of all the numbers between including them too and return it. If the two numbers are equal return a or b. :param a: :param b: :return:
kyu_7.beginner_series_sum_of_numbers.test_sum_of_numbers.
SumOfNumbersTestCase
Bases: unittest.case.TestCase
unittest.case.TestCase
Testing get_sum function
test_get_sum_equal_numbers
a and b are equal :return:
test_get_sum_negative_numbers
a or b is negative :return:
test_get_sum_positive_numbers
a an b are positive numbers :return: