Exemplo n.º 1
0
def test_5():
    assert sum_double(3, 3) is 12
Exemplo n.º 2
0
def test_3():
    assert sum_double(2, 2) is 8
Exemplo n.º 3
0
def test_4():
    assert sum_double(-1, 0) is -1
Exemplo n.º 4
0
def test_neg5_5():
    assert sum_double(-5,5) == 0
Exemplo n.º 5
0
def test_2():
    assert sum_double(3, 2) is 5
Exemplo n.º 6
0
def test_8():
    assert sum_double(3, 4) is 7
Exemplo n.º 7
0
 def test_2_and_2_returns_8(self):
     actual = sum_double(2, 2)
     expected = 8
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "2" and "2" to equal "8"')
Exemplo n.º 8
0
 def test_3_and_4_returns_7(self):
     actual = sum_double(3, 4)
     expected = 7
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "3" and "4" to equal "7"')
Exemplo n.º 9
0
def test_neg5_neg5():
    assert sum_double(-5,-5) == -20
    
Exemplo n.º 10
0
 def test_0_and_1_returns_1(self):
     actual = sum_double(0, 1)
     expected = 1
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "0" and "1" to equal "1"')
Exemplo n.º 11
0
 def test_1_and_2_returns_3(self):
     actual = sum_double(1, 2)
     expected = 3
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "1" and "2" to equal "3"')
Exemplo n.º 12
0
 def test_0_and_0_returns_0(self):
     actual = sum_double(0, 0)
     expected = 0
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "0" and "0" to equal "0"')
Exemplo n.º 13
0
 def test_3_and_3_returns_12(self):
     actual = sum_double(3, 3)
     expected = 12
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "3" and "3" to equal "12"')
Exemplo n.º 14
0
 def test_negative_1_and_0_returns_negative_1(self):
     actual = sum_double(-1, 0)
     expected = -1
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "-1" and "0" to equal "-1"')
Exemplo n.º 15
0
def test_6():
    assert sum_double(0, 0) is 0
Exemplo n.º 16
0
def test_3_5():
    assert sum_double(3,5) == 8
Exemplo n.º 17
0
def test_7():
    assert sum_double(0, 1) is 1
Exemplo n.º 18
0
def test_5_5():
    assert sum_double(5,5) == 20
Exemplo n.º 19
0
def test_1():
    assert sum_double(1, 2) is 3
Exemplo n.º 20
0
 def test_3_and_2_returns_5(self):
     actual = sum_double(3, 2)
     expected = 5
     self.assertEqual(
         actual, expected,
         'Expected calling sum_double with "3" and "2" to equal "5"')