def test_select_many2(self): linq = Linq([[0, 1, 2, 3, 4, 5], [6, 7, 8, 9]]) assert_equal(linq.select_many(), Linq(range(10)))
def test_select_many(self): linq = Linq([{"ids": [0, 1, 2, 3, 4, 5]}, {"ids": [6, 7, 8, 9]}]) assert_equal(linq.select_many(lambda x: x["ids"]), list(range(10)))