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