Example #1
0
 def test_select2(self):
     linq = Linq(range(5))
     assert_equal(linq.select(), Linq(range(5)))
Example #2
0
 def test_select(self):
     linq = Linq(range(5))
     assert_equal(linq.select(lambda x: x % 2 == 0),
                  Linq([True, False, True, False, True]))