예제 #1
0
 def test_empty(self):
     my_list = []
     reverse(my_list)
     self.assertEqual(my_list, [])
예제 #2
0
 def test_long_odd(self):
     my_list = [1, 2, 3, 4, 5, 6, 7]
     reverse(my_list)
     self.assertEqual(my_list, [7, 6, 5, 4, 3, 2, 1])
예제 #3
0
 def test_double(self):
     my_list = [1, 2]
     reverse(my_list)
     self.assertEqual(my_list, [2, 1])
예제 #4
0
 def test_long_even(self):
     my_list = [1, 2, 3, 4, 5, 6, 7, 8]
     reverse(my_list)
     self.assertEqual(my_list, [8, 7, 6, 5, 4, 3, 2, 1])
예제 #5
0
 def test_single(self):
     my_list = [1]
     reverse(my_list)
     self.assertEqual(my_list, [1])