示例#1
0
 def test_backwards5(self):
     self.assertEqual(backwards([123]), [123])
示例#2
0
 def test_backwards4(self):
     self.assertEqual(backwards(["pig", "horse", "cat"]),
                      ["cat", "horse", "pig"])
示例#3
0
 def test_backwards2(self):
     self.assertEqual(backwards([5, 11, 2]), [2, 11, 5])
示例#4
0
 def test_backwards3(self):
     self.assertEqual(backwards([5, 11, 9, 8]), [8, 9, 11, 5])
示例#5
0
 def test_backwards1(self):
     self.assertEqual(backwards([1, 3]), [3, 1])