예제 #1
0
    def test_subtraction_negative_numbers(self):
        num1 = -3
        num2 = -3

        result = math.subtraction(num1, num2)
        self.assertEquals(result, 0, "Is expected to have a result equal to 0.")
예제 #2
0
    def test_subtraction_mix_numbers(self):
        num1 = 10
        num2 = -3

        result = math.subtraction(num1, num2)
        self.assertEquals(result, 13, "Is expected to have a result equal to 13.")
예제 #3
0
    def test_subtraction_positive_numbers(self):
        num1 = 12
        num2 = 3

        result = math.subtraction(num1, num2)
        self.assertEquals(result, 9, "Is expected to have a result equal to 9.")