예제 #1
0
 def test_1_2_3_4_6_returns_true(self):
     actual = first_last6([1, 2, 3, 4, 6])
     expected = True
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [1, 2, 3, 4, 6] to return "True"'
     )
예제 #2
0
 def test_1_2_3_4_returns_false(self):
     actual = first_last6([1, 2, 3, 4])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [1, 2, 3, 4] to return "False"'
     )
예제 #3
0
def test3():
    assert(first_last6([2,6,1,2,6,8])) == False
예제 #4
0
def test2():
    assert(first_last6([6,1,2,6])) == True
예제 #5
0
def test1():
    assert(first_last6([1,2,6])) == True
예제 #6
0
 def test_5_5_returns_false(self):
     actual = first_last6([5, 5])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [5, 5] to return "False"')
예제 #7
0
 def test_3_6_1_returns_false(self):
     actual = first_last6([3, 6, 1])
     expected = False
     self.assertEqual(
         actual, expected,
         'Expected calling first_last6() with [3, 6, 1] to return "False"')
예제 #8
0
def test2():
    assert (first_last6([6, 1, 2, 6])) == True
예제 #9
0
def test1():
    assert (first_last6([1, 2, 6])) == True
예제 #10
0
def test3():
    assert (first_last6([2, 6, 1, 2, 6, 8])) == False