MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_slices_2

Function test_slices_2

python/pathway/tests/test_common.py:5674–5702  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5672
5673
5674def test_slices_2():
5675 left = T(
5676 """
5677 col | on
5678 a | 11
5679 b | 12
5680 c | 13
5681 """
5682 )
5683 right = T(
5684 """
5685 col | on
5686 d | 12
5687 e | 13
5688 f | 14
5689 """,
5690 )
5691 res = left.join(right, left.on == right.on).select(
5692 **pw.left.with_suffix("_l").with_prefix("t"),
5693 **pw.right.with_suffix("_r").with_prefix("t"),
5694 )
5695 expected = T(
5696 """
5697tcol_l | ton_l | tcol_r | ton_r
5698b | 12 | d | 12
5699c | 13 | e | 13
5700 """
5701 )
5702 assert_table_equality_wo_index(res, expected)
5703
5704
5705def test_slices_3():

Callers

nothing calls this directly

Calls 5

TFunction · 0.90
selectMethod · 0.45
joinMethod · 0.45
with_prefixMethod · 0.45
with_suffixMethod · 0.45

Tested by

no test coverage detected