示例#1
0
 def test_splitat(self):
     before, after = iters.splitat(2, iters.range(5))
     self.assertEqual([0, 1], list(before))
     self.assertEqual([2, 3, 4], list(after))
示例#2
0
文件: tests.py 项目: Gizmo707/fn.py
 def test_splitat(self):
     before, after = iters.splitat(2, iters.range(5))
     self.assertEqual([0,1], list(before))
     self.assertEqual([2,3,4], list(after))