Beispiel #1
0
 def test_subtract_value(self):
     """Tests the return value of the add function.
     """
     self.assertEqual(main.subtract(2, 5), -3)
     self.assertEqual(main.subtract(52, 5), 47)
     self.assertEqual(main.subtract(3, 3), 0)
     self.assertEqual(main.subtract(-2, -5), 3)
Beispiel #2
0
 def test_subtract(self):
     self.assertEqual(subtract(10, 5), 5)
     self.assertEqual(subtract(-1, 1), -2)
     self.assertEqual(subtract(-1, -1), 0)
Beispiel #3
0
 def test_subtraction(self):
     assert 2 == main.subtract(4, 2)
Beispiel #4
0
def test_subtract_two_neg():
    assert main.subtract(-2, -3) == 1
Beispiel #5
0
def test_subtract_two_pos():
    assert main.subtract(5, 3) == 2
Beispiel #6
0
 def test_subtract(self):
     self.assertEqual(main.subtract(10, 2), 8)
     self.assertEqual(main.subtract(0, 2), -2)
 def test_subtract(self):
     assert 4 == main.subtract(10, 6)