示例#1
0
 def testSame(self):
     return self.assertEqual(reverseList([1, 1, 1]), [1, 1, 1])
示例#2
0
 def testNull(self):
     return self.assertEqual(reverseList([]), [])
示例#3
0
 def test2(self):
     return self.assertEqual(reverseList(2, 4, -3), [-3, 4, 2])
示例#4
0
 def testFull(self):
     return self.assertEqual(reverseList([1, 8, 2, 6, 4, 6]),
                             [6, 4, 6, 2, 8, 1])
示例#5
0
 def test1(self):
     return self.assertEqual(reverseList([1, 3, 5]), [5, 3, 1])