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