Пример #1
0
 def testMultiply4(self):
     """
     GIVEN: parameters of -5.0, 6.0
     WHEN: multiply(-5.0, 6.0) is called
     THEN: -30.0 is returned
     """
     x = moreSelection.multiply(-5.0, 6.0)
     self.assertEqual(x, -30.0)
Пример #2
0
 def testMultiply6(self):
     """
     GIVEN: parameters of 0, 0
     WHEN: multiply(0, 0) is called
     THEN: 0 is returned
     """
     x = moreSelection.multiply(0, 0)
     self.assertEqual(x, 0)
Пример #3
0
 def testMultiply3(self):
     """
     GIVEN: parameters of -5, 6
     WHEN: multiply(-5, 6) is called
     THEN: -30 is returned
     """
     x = moreSelection.multiply(-5, 6)
     self.assertEqual(x, -30)