Пример #1
0
 def test_5_1_6_1_9_9_returns_8(self):
     actual = big_diff([5, 1, 6, 1, 9, 9])
     expected = 8
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [5, 1, 6, 1, 9, 9] to return "8"')
Пример #2
0
 def test_7_7_6_8_5_5_6_returns_3(self):
     actual = big_diff([7, 7, 6, 8, 5, 5, 6])
     expected = 3
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [7, 7, 6, 8, 5, 5, 6] to return "3"')
Пример #3
0
 def test_2_returns_0(self):
     actual = big_diff([2])
     expected = 0
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [2] to return "0"')
Пример #4
0
 def test_10_3_5_6_returns_7(self):
     actual = big_diff([10, 3, 5, 6])
     expected = 7
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [10, 3, 5, 6] to return "7"')
Пример #5
0
 def test_10_0_returns_10(self):
     actual = big_diff([10, 0])
     expected = 10
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [10, 0] to return "10"')
Пример #6
0
 def test_2_3_returns_1(self):
     actual = big_diff([2, 3])
     expected = 1
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [2, 3] to return "1"')
Пример #7
0
 def test_10_2_returns_8(self):
     actual = big_diff([10, 2])
     expected = 8
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [10, 2] to return "8"')
Пример #8
0
 def test_7_2_10_9_returns_8(self):
     actual = big_diff([7, 2, 10, 9])
     expected = 8
     self.assertEqual(
         actual, expected, 'Expected calling big_diff() with [7, 2, 10, 9] to return "8"')
Пример #9
0
def test_2():
    assert big_diff([7, 2, 10, 9]) == 8
Пример #10
0
def test_1():
    assert big_diff([10, 3, 5, 6]) == 7
Пример #11
0
def test_3():
    assert big_diff([2, 10, 7, 2]) == 8