def test_concat(): exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')] exprs2 = [ibis.literal(3).name('c'), ibis.literal(4).name('d')] list1 = ibis.expr_list(exprs) list2 = ibis.expr_list(exprs2) result = list1.concat(list2) expected = ibis.expr_list(exprs + exprs2) assert_equal(result, expected)
def test_concat(self): exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")] exprs2 = [ibis.literal(3).name("c"), ibis.literal(4).name("d")] list1 = ibis.expr_list(exprs) list2 = ibis.expr_list(exprs2) result = list1.concat(list2) expected = ibis.expr_list(exprs + exprs2) assert_equal(result, expected)
def expr(): exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')] return ibis.expr_list(exprs)
def setUp(self): exprs = [ibis.literal(1).name('a'), ibis.literal(2).name('b')] self.expr = ibis.expr_list(exprs)
def expr(): exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")] return ibis.expr_list(exprs)
def setUp(self): exprs = [ibis.literal(1).name("a"), ibis.literal(2).name("b")] self.expr = ibis.expr_list(exprs)