示例#1
0
 def test_list_3(self):
     self.assertEqual(
         front_x([
             'cambodia', 'rwanda', 'sahara', 'xalapa', 'xanxere',
             'california'
         ]), [
             'xalapa', 'xanxere', 'california', 'cambodia', 'rwanda',
             'sahara'
         ])
示例#2
0
 def test_list_1(self):
     self.assertEqual(front_x(['dog', 'bat', 'aardvark', 'cat']),
                      ['aardvark', 'bat', 'cat', 'dog'])
示例#3
0
 def test_list_2(self):
     self.assertEqual(
         front_x(['brazil', 'argentina', 'xalapa', 'congo', 'russia']),
         ['xalapa', 'argentina', 'brazil', 'congo', 'russsia'])
示例#4
0
def test_list_two():
    assert_equal(front_x(['pizza','wheel','saucer','xylophone','circle']),
                ['xylophone','circle','pizza','saucer','wheel'])
示例#5
0
def test_list_three():
    assert_equal(front_x(['xxx','aaa','ttt','yyy','xxz','xxzy']),
                ['xxx','xxz','xxzy','aaa','ttt','yyy'])
示例#6
0
 def test_list_3(self):
     self.assertEqual(front_x(['cambodia','rwanda','sahara',
                     'xalapa','xanxere','california']),
                     ['xalapa','xanxere','california',
                     'cambodia','rwanda','sahara'])
示例#7
0
def test_list_one():
    assert_equal(front_x(['fish','frog','turkey','cow']),
                ['cow','fish','frog','turkey'])
示例#8
0
 def test_list_2(self):
     self.assertEqual(front_x(['brazil','argentina','xalapa',
                     'congo','russia']),['xalapa','argentina',
                     'brazil','congo','russsia'])
示例#9
0
 def test_list_1(self):
     self.assertEqual(front_x(['dog','bat','aardvark','cat']),
                     ['aardvark','bat','cat','dog'])
示例#10
0
def test_list_three():
    assert_equal(front_x(['xxx', 'aaa', 'ttt', 'yyy', 'xxz', 'xxzy']),
                 ['xxx', 'xxz', 'xxzy', 'aaa', 'ttt', 'yyy'])
示例#11
0
def test_list_two():
    assert_equal(front_x(['pizza', 'wheel', 'saucer', 'xylophone', 'circle']),
                 ['xylophone', 'circle', 'pizza', 'saucer', 'wheel'])
示例#12
0
def test_list_one():
    assert_equal(front_x(['fish', 'frog', 'turkey', 'cow']),
                 ['cow', 'fish', 'frog', 'turkey'])