예제 #1
0
 def testOutOfBoundList(self):
     self.assertEqual(sliceList([1,2,3],4),[])
예제 #2
0
 def testNormalCase(self):
     self.assertEqual(sliceList([1,2,3,4,5],2),[[1,2],[3,4,5]])
예제 #3
0
 def testEmptyList(self):
     self.assertEqual(sliceList([1,2,3],0),[[],[1,2,3]])