Пример #1
0
 def test_take2(self):
     linq = Linq([1, 2])
     assert_equal(linq.take(5), Linq([1, 2]))
Пример #2
0
 def test_take(self):
     linq = Linq(range(100))
     assert_equal(linq.take(5), Linq([0, 1, 2, 3, 4]))